|
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 __CSIPEXIMDIALOG_H__ |
|
22 #define __CSIPEXIMDIALOG_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <eikdialg.h> |
|
26 #include <e32base.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CSIPAddress; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * The dialog for quering the instant message recipient address |
|
34 * and the message. |
|
35 */ |
|
36 class CSIPExIMDialog : public CEikDialog |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Static constructor |
|
42 * @param aAddress On return contains the recipients address. |
|
43 * @param aMsg On return contains the message. |
|
44 */ |
|
45 static CSIPExIMDialog* NewL( TDes& aAddress, TDes& aMsg ); |
|
46 |
|
47 /** |
|
48 * Static constructor. On return the instance is left to the |
|
49 * CleanupStack |
|
50 * @param aAddress On return contains the recipients address. |
|
51 * @param aMsg On return contains the message. |
|
52 */ |
|
53 static CSIPExIMDialog* NewLC( TDes& aAddress, TDes& aMsg ); |
|
54 |
|
55 /** |
|
56 * Destructor |
|
57 */ |
|
58 ~CSIPExIMDialog(); |
|
59 |
|
60 private: |
|
61 |
|
62 /** |
|
63 * C++ default constructor |
|
64 * @param aAddress On return contains the recipients address. |
|
65 * @param aMsg On return contains the message. |
|
66 */ |
|
67 CSIPExIMDialog( TDes& aAddress, TDes& aMsg ); |
|
68 |
|
69 /** |
|
70 * Symbian 2nd phase constructor that can leave. |
|
71 */ |
|
72 void ConstructL(); |
|
73 |
|
74 private: // From base classes |
|
75 |
|
76 /** |
|
77 * From CEikDialog |
|
78 */ |
|
79 TBool OkToExitL(TInt aKeyCode); |
|
80 |
|
81 /** |
|
82 * From CEikDialog |
|
83 */ |
|
84 virtual void PreLayoutDynInitL(); |
|
85 |
|
86 private: |
|
87 |
|
88 /** |
|
89 * Checks if user typed address is valid sip address. |
|
90 * @param aSipAddr address which validity is checked |
|
91 * Returns true if valid address, otherwise returns false |
|
92 */ |
|
93 TBool AddressValid( const TDesC8& aSipAddr ); |
|
94 |
|
95 private: |
|
96 // Member variables |
|
97 |
|
98 TDes& iAddress; |
|
99 TDes& iMsg; |
|
100 }; |
|
101 |
|
102 #endif // __CSIPEXIMDIALOG_H__ |
|
103 |
|
104 // End of file |