sipeximdialog.h

来自「an example for sip for symbian」· C头文件 代码 · 共 105 行

H
105
字号
/*
* ==============================================================================
*  Name        : CSIPExIMDialog.h
*  Part of     : SIPEx
*  Interface   : 
*  Description : 
*  Version     : 
*
*  Copyright (c) 2004-2006 Nokia Corporation.
*  This material, including documentation and any related 
*  computer programs, is protected by copyright controlled by 
*  Nokia Corporation.
* ==============================================================================
*/

#ifndef __CSIPEXIMDIALOG_H__
#define __CSIPEXIMDIALOG_H__

// INCLUDES
#include <akndialog.h>
#include <e32base.h>

// FORWARD DECLARATIONS
class CSIPAddress;

// CLASS DECLARATION
/**
* The dialog for quering the instant message recipient address
*              and the message.
*/
class CSIPExIMDialog : public CAknDialog
    {
    public:

        /**
        * Static constructor
        * @param aAddress On return contains the recipients address.
        * @param aMsg On return contains the message.
        */
        static CSIPExIMDialog* NewL( TDes& aAddress, TDes& aMsg );

        /**
        * Static constructor. On return the instance is left to the
        * CleanupStack
        * @param aAddress On return contains the recipients address.
        * @param aMsg On return contains the message.
        */
        static CSIPExIMDialog* NewLC( TDes& aAddress, TDes& aMsg );

        /**
        * Destructor
        */
        ~CSIPExIMDialog();

    private:

        /**
        * C++ default constructor
        * @param aAddress On return contains the recipients address.
        * @param aMsg On return contains the message.
        */
        CSIPExIMDialog( TDes& aAddress, TDes& aMsg );

        /**
        * Symbian 2nd phase constructor that can leave.
        */
        void ConstructL();

    private: // From base classes

        /**
        * From CEikDialog
        */
        TBool OkToExitL(TInt aKeyCode);

        /**
        * From CEikDialog
        */
        virtual void PreLayoutDynInitL();
        
        /**
        * From CEikDialog
        */
        void HandleResourceChange( TInt aType );
        
    private:
    
        /**
        * Checks if user typed address is valid sip address.
        * @param aSipAddr address which validity is checked
        * Returns true if valid address, otherwise returns false
        */
        TBool AddressValid( const TDesC8& aSipAddr );

    private:
        // Member variables

        TDes& iAddress;
        TDes& iMsg;
    };

#endif // __CSIPEXIMDIALOG_H__

// End of file

⌨️ 快捷键说明

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