cmmsldialog.h

来自「The MMS List example demonstrates how to」· C头文件 代码 · 共 73 行

H
73
字号
/* Copyright (c) 2003, Nokia. All rights reserved */

#ifndef __CMMSLDIALOG_H__
#define __CMMSLDIALOG_H__

// INCLUDES
#include <eikdialg.h>
#include "MMmslObsInterface.h"

// CONSTANTS
const TInt KMaxTelephoneNumberLength    = 32; // max telephone number length
const TInt KMaxMessageLength            = 256; // max mms message length

// CLASS DECLARATION

/**
* CMmslDialog dialog class.
*
*/
class CMmslDialog : public CEikDialog
    {
    public: // Constructors and destructor

        /**
        * CMmslDialog
        * Constructor.
        * @param aObserver Address of observer. Observer knows message data.
        * @param aItem Listbox text. Used to find message id.
        */
        CMmslDialog( MMmslObsInterface* aObserver, const TDesC& aItem );

        /**
        * ~CMmslDialog
        * Destructor is always virtual.
        */
        virtual ~CMmslDialog();

    protected:  // Functions from base classes

        /**
        * From CEikDialog,PreLayoutDynInitL.
        * This method is called in CEikDialog::ExecuteLD()
        * before a form is drawn.
        */
        void PreLayoutDynInitL();

        /**
        * From CEikDialog,OkToExitL.
        * This method is called by the dialog framework.
        * @param aButtonId, id of the softkey which was pressed
        * @return ETrue if the dialog can exit, EFalse otherwise
        */
        TBool OkToExitL( TInt aButtonId );


    private: //data
        /**
        * Where all questions are asked from.
        * Owned by CMmslAppUi object.
        */
        MMmslObsInterface* iObserver;

        /**
        * MLisbox item.
        * Owned by CEikTextListBox object.
        */
        const TDesC& iItem;
    };

#endif	// __CMMSLDIALOG_H__

// End of File

⌨️ 快捷键说明

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