|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __CREATORIMPS_H__ |
|
22 #define __CREATORIMPS_H__ |
|
23 |
|
24 #ifdef __PRESENCE |
|
25 |
|
26 #include "creator_model.h" |
|
27 #include "creator_modulebase.h" |
|
28 |
|
29 #include <e32base.h> |
|
30 |
|
31 #include <cimpssapsettings.h> |
|
32 #include <cimpssapsettingsstore.h> |
|
33 |
|
34 |
|
35 class CCreatorEngine; |
|
36 class CIMPSParameters; |
|
37 |
|
38 |
|
39 class CCreatorIMPS : public CBase, public MCreatorModuleBase |
|
40 { |
|
41 public: |
|
42 static CCreatorIMPS* NewL(CCreatorEngine* aEngine); |
|
43 static CCreatorIMPS* NewLC(CCreatorEngine* aEngine); |
|
44 ~CCreatorIMPS(); |
|
45 |
|
46 private: |
|
47 CCreatorIMPS(); |
|
48 void ConstructL(CCreatorEngine* aEngine); // from MCreatorModuleBase |
|
49 |
|
50 public: |
|
51 TBool AskDataFromUserL(TInt aCommand, TInt& aNumberOfEntries); // from MCreatorModuleBase |
|
52 TInt CreateIMPSServerEntryL(CIMPSParameters *aParameters); |
|
53 void DeleteAllL(); |
|
54 void DeleteAllCreatedByCreatorL(); |
|
55 |
|
56 private: |
|
57 CIMPSSAPSettingsStore* iIMPSSAPSettingsStore; |
|
58 |
|
59 CIMPSParameters* iParameters; |
|
60 RArray<TUint32> iEntryIds; // TUint32 CIMPSSAPSettings::Uid() |
|
61 |
|
62 public: |
|
63 }; |
|
64 |
|
65 |
|
66 class CIMPSParameters : public CCreatorModuleBaseParameters |
|
67 { |
|
68 public: |
|
69 HBufC* iServerName; |
|
70 HBufC* iServerURL; |
|
71 HBufC* iServerUsername; |
|
72 HBufC* iServerPassword; |
|
73 HBufC* iServerAccessPointName; |
|
74 |
|
75 void SetRandomNameL(CCreatorEngine& aEngine); |
|
76 void SetRandomUrlL(CCreatorEngine& aEngine); |
|
77 void SetRandomUsernameL(CCreatorEngine& aEngine); |
|
78 void SetRandomPasswordL(CCreatorEngine& aEngine); |
|
79 void SetDefaultAccessPointL(); |
|
80 |
|
81 public: |
|
82 CIMPSParameters(); |
|
83 ~CIMPSParameters(); |
|
84 }; |
|
85 |
|
86 #endif //__PRESENCE |
|
87 |
|
88 #endif // __CREATORIMPS_H__ |