chxavinfolist.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:2k
- /*****************************************************************************
- * chxavinfolist.h
- * ---------------
- *
- * Synopsis:
- * Represents a list of descriptor text formatted for display in a Series60-style
- * info list layout (which uses CAknSingleHeadingPopupMenuStyleListBox). If long
- * fields are added they are broken up so they wrap nicely.
- *
- *
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- *****************************************************************************/
- #ifndef _chxavinfolist_h_
- #define _chxavinfolist_h_
- // Symbian includes...
- #include <e32base.h>
- #include <badesca.h>
- #include <bamdesca.h>
- #include <coeutils.h>
- #include <aknenv.h>
- // Includes from this project...
- #include "chxavrefptr.h"
- // class CHXAvInfoList
- class CHXAvInfoList
- : public CBase
- , public MDesCArray
- {
- public:
- enum AddLineFlag
- {
- skipEmptyLine,
- includeEmptyLine
- };
- // ctor and dtor
- CHXAvInfoList();
- virtual ~CHXAvInfoList();
- void ConstructL();
- void AddLineL(const TDesC& caption, const TDesC& fieldText, AddLineFlag flag = skipEmptyLine);
- void AddLineL(TInt idCaptionText, const TDesC& fieldText, AddLineFlag flag = skipEmptyLine);
- void AddLinesL(const MDesCArray* pCaptions, const MDesCArray* pFields, AddLineFlag flag = skipEmptyLine);
- // MDesCArray
- TInt MdcaCount() const;
- TPtrC MdcaPoint(TInt aIndex) const;
- public:
- // methods
- private:
- // implementation
- const CFont* m_pFont; // not owned
- refptr<CDesCArray> m_pLabels;
- refptr<CDesCArray> m_pFields;
- refptr<HBufC> m_pbuff;
- };
- #endif // _chxavinfolist_h_