chxavstring.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:2k
- /************************************************************************
- * chxavstring.h
- * -------------
- *
- * Synopsis:
- * Contains the declaration of the CHXAvString class. This class is a
- * helper class that takes care of itself on the stack and can load
- * resource strings as well through the constructor.
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- *****************************************************************************/
- #ifndef _chxavstring_h_
- #define _chxavstring_h_
- // Symbian includes...
- #include <aknpopup.h>
- #include <akntitle.h>
- #include <eikenv.h>
- #include <coemain.h>
- // Helix includes...
- #include "hxassert.h"
- #include "hxstring.h"
- // Includes from this project...
- // class CHXAvString...
- class CHXAvString
- {
- public:
- CHXAvString(TInt resId);
- //CHXAvString(const CHXString& str);
- // format; int argument
- //CHXAvString(TInt resId, TInt arg);
- //CHXAvString(const TDesC& formatString, TInt arg);
- // format; string descriptor argument
- //CHXAvString(TInt resId, const TDesC& desc);
- // format; float
- //CHXAvString(TInt resId, double arg, int unused);
-
- HBufC* operator&() { return m_pText; }
- TDesC& operator()() { return *m_pText; }
- const HBufC* operator&() const { return m_pText; }
- const TDesC& operator()() const { return *m_pText; }
- virtual ~CHXAvString(){ CleanupStack::PopAndDestroy(); }
- private:
- // automatic instanciation only, no funny stuff
- void * operator new(size_t);
- CHXAvString& operator=(const CHXAvString&);
- CHXAvString(const CHXAvString&);
- HBufC* m_pText;
- };
- #endif // _chxavstring_h_