Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
chxliteprefs.h
Package: helix.src.0812.rar [view]
Upload User: zhongxx05
Upload Date: 2007-06-06
Package Size: 33641k
Code Size: 2k
Category:
Symbian
Development Platform:
C/C++
- #ifndef __chxliteprefs_h
- #define __chxliteprefs_h
- #include "hxtypes.h"
- #include "hxmap.h"
- #include "unkimp.h"
- #include "hxstring.h"
- #include "hxprefs.h"
- #include "hxengin.h"
- class CHXStringList;
- class CHXDataFile;
- struct IHXCommonClassFactory;
- class HXMutex;
- enum ParseState
- {
- eParsingWhiteSpace,
- eParsingName,
- eParsingValue,
- eParsingShadow,
- eParsingComment
- };
- class CHXLitePrefs : public IHXPreferences,
- public IHXPreferences3,
- #if !defined(HELIX_CONFIG_LITEPREFS_SLUGGISH_OUT)
- public IHXCallback,
- #endif
- public CUnknownIMP
- {
- public:
- CHXLitePrefs(const char* pRootPath = NULL);
- virtual ~CHXLitePrefs();
- DECLARE_UNKNOWN(CHXLitePrefs);
- // CHXLitePrefs
- STDMETHOD(SetContext) (THIS_ IUnknown* pContext);
- STDMETHOD(Commit) (THIS);
- STDMETHOD(SetAutoCommit) (THIS_ bool bAutoCommit);
- STDMETHOD(ResetPrefs) (THIS);
- // IHXPreferences
- STDMETHOD(ReadPref) (THIS_ const char* pName,
- REF(IHXBuffer*) pValue);
- STDMETHOD(WritePref) (THIS_ const char* pName,
- IHXBuffer* pValue);
- // IHXPreferences3
- STDMETHOD(Open) (THIS_ const char* pCompanyName,
- const char* pProductName,
- ULONG32 nProdMajorVer,
- ULONG32 nProdMinorVer);
- STDMETHOD(OpenShared) (THIS_ const char* pCompanyName);
- STDMETHOD(DeletePref) (THIS_ const char* pPrekKey);
- #if !defined(HELIX_CONFIG_LITEPREFS_SLUGGISH_OUT)
- // IHXCallback
- STDMETHOD(Func) (THIS);
- #endif // (HELIX_CONFIG_LITEPREFS_SLUGGISH_OUT)
- void Close(void);
- private:
- CHXString GetFullPath(const CHXString& strFileName);
- void PossiblyCommitPrefChange();
- CHXMapStringToOb m_prefs;
- HXMutex* m_pMutex;
- IHXCommonClassFactory* m_pFactory;
- IHXScheduler* m_pScheduler;
- CallbackHandle m_hCallback;
- CHXString m_strRootPath;
- CHXString m_strFileName;
- bool m_bAutoCommit;
- };
- #endif /* #ifndef __chxliteprefs_h */