chxavurllist.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:2k
- /************************************************************************
- * 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_