chxavinfolist.h

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

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

⌨️ 快捷键说明

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