|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : SIPExAddrQueryDlg.h 00004 * Part of : SIPEx 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef __CSIPEXADDRQUERYDLG_H__ 00017 #define __CSIPEXADDRQUERYDLG_H__ 00018 00019 // INCLUDES 00020 #include <akndialog.h> 00021 00022 00023 // FORWARD DECLARATIONS 00024 class CSIPAddress; 00025 00026 // CLASS DECLARATION 00027 /** 00028 * A recipient's address query dialog for game invitation. 00029 */ 00030 class CSIPExAddrQueryDlg : public CAknDialog 00031 { 00032 public: 00033 00034 /** 00035 * Static constructor 00036 * @param aAddr On return contains the other player's address. 00037 */ 00038 static CSIPExAddrQueryDlg* NewL( TDes& aAddr ); 00039 00040 /** 00041 * Static constructor. On return the instance is left to the 00042 * CleanupStack. 00043 * @param aAddr On return contains the other player's address. 00044 */ 00045 static CSIPExAddrQueryDlg* NewLC( TDes& aAddr ); 00046 00047 /** 00048 * Destructor 00049 */ 00050 ~CSIPExAddrQueryDlg(); 00051 00052 private: 00053 00054 /** 00055 * C++ default constructor 00056 * @param aAddr On return contains the other player's address. 00057 */ 00058 CSIPExAddrQueryDlg( TDes& aAddr ); 00059 00060 private: // From base classes 00061 00062 /** 00063 * From CEikDialog 00064 */ 00065 TBool OkToExitL(TInt aKeyCode); 00066 00067 /** 00068 * From CEikDialog 00069 */ 00070 virtual void PreLayoutDynInitL(); 00071 00072 /** 00073 * From CEikDialog 00074 */ 00075 virtual void HandleResourceChange( TInt aType ); 00076 00077 00078 private: // New functions 00079 00080 /** 00081 * Checks if user typed address is valid sip address. 00082 * @param aSipAddr address which validity is checked 00083 * Returns true if valid address, otherwise returns false 00084 */ 00085 TBool AddressValid( const TDesC8& aSipAddr ); 00086 00087 private: 00088 // Member variables 00089 TDes& iAddress; 00090 }; 00091 00092 #endif // __CSIPEXADDRQUERYDLG_H__ 00093 00094 // End of file
|
© Nokia 2006 |