realtimenetprots/sipfw/SampleApp/gameUI_techview/Inc/SIPExAddrQueryDlg.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 
       
     2 /*
       
     3 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 * All rights reserved.
       
     5 * This component and the accompanying materials are made available
       
     6 * under the terms of "Eclipse Public License v1.0"
       
     7 * which accompanies this distribution, and is available
       
     8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 *
       
    10 * Initial Contributors:
       
    11 * Nokia Corporation - initial contribution.
       
    12 *
       
    13 * Contributors:
       
    14 *
       
    15 * Description:
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CSIPLINEADDRQUERYDLG_H__
       
    22 #define __CSIPLINEADDRQUERYDLG_H__
       
    23 
       
    24 // INCLUDES
       
    25 #include    <eikdialg.h>
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CSIPAddress;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33 * A recipient's address query dialog for game invitation.
       
    34 */
       
    35 class CSIPExAddrQueryDlg : public CEikDialog
       
    36     {
       
    37     public:
       
    38 
       
    39         /**
       
    40         * Static constructor
       
    41         * @param aAddr On return contains the other player's address.
       
    42         */
       
    43         static CSIPExAddrQueryDlg* NewL( TDes& aAddr );
       
    44 
       
    45         /**
       
    46         * Static constructor. On return the instance is left to the
       
    47         * CleanupStack.
       
    48         * @param aAddr On return contains the other player's address.
       
    49         */
       
    50         static CSIPExAddrQueryDlg* NewLC( TDes& aAddr );
       
    51 
       
    52         /**
       
    53         * Destructor
       
    54         */
       
    55         ~CSIPExAddrQueryDlg();
       
    56 
       
    57     private:
       
    58 
       
    59         /**
       
    60         * C++ default constructor
       
    61         * @param aAddr On return contains the other player's address.
       
    62         */
       
    63         CSIPExAddrQueryDlg( TDes& aAddr );
       
    64         
       
    65         /**
       
    66         * Symbian 2nd phase constructor
       
    67         */
       
    68         void ConstructL();
       
    69     
       
    70     private: // From base classes
       
    71 
       
    72         /**
       
    73         * From CEikDialog
       
    74         */
       
    75         TBool OkToExitL(TInt aKeyCode);
       
    76 
       
    77         /**
       
    78         * From CEikDialog
       
    79         */
       
    80         virtual void PreLayoutDynInitL();
       
    81         
       
    82     private: // New functions
       
    83     
       
    84         /**
       
    85         * Checks if user typed address is valid sip address.
       
    86         * @param aSipAddr address which validity is checked
       
    87         * Returns true if valid address, otherwise returns false
       
    88         */
       
    89         TBool AddressValid( const TDesC8& aSipAddr );
       
    90 
       
    91     private:
       
    92         // Member variables
       
    93         TDes&   iAddress;
       
    94     };
       
    95 
       
    96 #endif // __CSIPLINEADDRQUERYDLG_H__
       
    97 
       
    98 // End of file