chxavstring.h

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

H
71
字号
/************************************************************************
 * 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_

⌨️ 快捷键说明

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