chxavurllist.h

来自「symbian 下的helix player源代码」· C头文件 代码 · 共 85 行

H
85
字号
/************************************************************************
 * chxavurllist.h
 * --------------
 *
 * Synopsis:
 * Contains the declaration of the CHXAvURLList class.  It's basically
 * a neat way to keep track of the urls most recently viewed.
 *
 *
 * Target:
 * Symbian OS
 *
 *
 * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
 *
 *****************************************************************************/

#ifndef _chxavurllist_h_
#define _chxavurllist_h_

// Standard includes...
#include <stdio.h>
#include <stdlib.h>

// Symbian includes...
#include <e32base.h>

// Helix includes...
#include "unkimp.h"
#include "ihxpckts.h"
#include "hxstring.h"
#include "hxurl.h"
#include "hxwintyp.h"
#include "hxcom.h"
#include "hxlist.h"
#include "hxbuffer.h"
#include "hxcomm.h"
#include "hxmon.h"

// Include from this project...
#include "chxbody.h"
#include "chxsmartptr.h"
#include "chxavurlinfo.h"


// class CHXAvURLList declaration...
class CHXAvURLList : 
    public CHXBody
{
public:

    CHXAvURLList(int maxURLs);
    CHXAvURLList();
    virtual ~CHXAvURLList();

    void InitializeL();

public:
    int NumURLs() const;
    void AddHead(const CHXAvURLInfo*& pURLInfo);
    void Remove(const CHXAvURLInfo*& pURLInfo);
    int RemoveMatches(const TDesC& url);
    void Clear();
    CHXAvURLInfo* GetURL(int index) const;
    void SetURL(int index, const CHXAvURLInfo*& pURLInfo);
    void SetMax(int count);
    int GetMax() const;

    bool WriteFile(const CHXString& filename) const;
    bool ReadFile(const CHXString& filename);

private:
    // ReadFile helper
    void AddTail(const CHXAvURLInfo*& pURLInfo);

   
    int m_maxURLs;
    CHXSimpleList m_urls;
};

typedef CHXSmartPtr<CHXAvURLList> CHXAvURLListPtr;


#endif // _chxavurllist_h_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?