callarray.h

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 63 行

H
63
字号
#ifndef __CALLARRAY_H__
#define __CALLARRAY_H__

//INCLUDES

// System includes
#include <bamdesca.h>        // MDesCArray
#include <e32base.h>        // CBase

// user includes
#include "CallInfo.h"        // TCallInfo

// FORWARD DECLARATIONS
class CLogEvent;
class CPhoneBookEngine;

/**
*
* @class    CCallArray CallArray.h 
* @brief    This class provides a wrapper
* around an array of TCallInfo.
*
* Copyright (c) EMCC Software Ltd 2003
* @version    1.0
* 
*/
class CCallArray: public CBase, public MDesCArray
{
public: // constructors and destructor    
    static CCallArray* NewL(CPhoneBookEngine& aPhoneBookEngine);
    static CCallArray* NewLC(CPhoneBookEngine& aPhoneBookEngine);
    ~CCallArray();

public: // from MDesCArray
    TInt MdcaCount() const;
    TPtrC MdcaPoint(TInt aIndex) const;

    void AddEntryL(const CLogEvent& aEvent);
    enum TAnalysis
    {
        ESummation,
        EFrequency
    };

    TInt AnalysisCallLogArrayL(TAnalysis aMethod);
    void CreateListBoxDescriptorsL(TAnalysis aMethod);
    TInt ReduceListL(TInt aCount);
    TCallInfo& operator[](TInt aIndex) const;

protected: // constructors
    CCallArray(CPhoneBookEngine& aPhoneBookEngine);
    void ConstructL();
    
protected: // data
    CArrayFixFlat<TCallInfo>*    iArray;
    CPhoneBookEngine&            iPhoneBookEngine;
};


#endif    // __CALLARRAY_H__

// End of File

⌨️ 快捷键说明

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