|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : CSIPExIMDialog.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 __CSIPEXIMDIALOG_H__ 00017 #define __CSIPEXIMDIALOG_H__ 00018 00019 // INCLUDES 00020 #include <akndialog.h> 00021 #include <e32base.h> 00022 00023 // FORWARD DECLARATIONS 00024 class CSIPAddress; 00025 00026 // CLASS DECLARATION 00027 /** 00028 * The dialog for quering the instant message recipient address 00029 * and the message. 00030 */ 00031 class CSIPExIMDialog : public CAknDialog 00032 { 00033 public: 00034 00035 /** 00036 * Static constructor 00037 * @param aAddress On return contains the recipients address. 00038 * @param aMsg On return contains the message. 00039 */ 00040 static CSIPExIMDialog* NewL( TDes& aAddress, TDes& aMsg ); 00041 00042 /** 00043 * Static constructor. On return the instance is left to the 00044 * CleanupStack 00045 * @param aAddress On return contains the recipients address. 00046 * @param aMsg On return contains the message. 00047 */ 00048 static CSIPExIMDialog* NewLC( TDes& aAddress, TDes& aMsg ); 00049 00050 /** 00051 * Destructor 00052 */ 00053 ~CSIPExIMDialog(); 00054 00055 private: 00056 00057 /** 00058 * C++ default constructor 00059 * @param aAddress On return contains the recipients address. 00060 * @param aMsg On return contains the message. 00061 */ 00062 CSIPExIMDialog( TDes& aAddress, TDes& aMsg ); 00063 00064 /** 00065 * Symbian 2nd phase constructor that can leave. 00066 */ 00067 void ConstructL(); 00068 00069 private: // From base classes 00070 00071 /** 00072 * From CEikDialog 00073 */ 00074 TBool OkToExitL(TInt aKeyCode); 00075 00076 /** 00077 * From CEikDialog 00078 */ 00079 virtual void PreLayoutDynInitL(); 00080 00081 /** 00082 * From CEikDialog 00083 */ 00084 void HandleResourceChange( TInt aType ); 00085 00086 private: 00087 00088 /** 00089 * Checks if user typed address is valid sip address. 00090 * @param aSipAddr address which validity is checked 00091 * Returns true if valid address, otherwise returns false 00092 */ 00093 TBool AddressValid( const TDesC8& aSipAddr ); 00094 00095 private: 00096 // Member variables 00097 00098 TDes& iAddress; 00099 TDes& iMsg; 00100 }; 00101 00102 #endif // __CSIPEXIMDIALOG_H__ 00103 00104 // End of file
|
© Nokia 2006 |