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 #ifndef __CCREATORPHONEBOOKBASE_H_ |
|
21 #define __CCREATORPHONEBOOKBASE_H_ |
|
22 |
|
23 #include "creator_modulebase.h" |
|
24 |
|
25 static const TInt KPhonebookFieldLength = 128; |
|
26 static const TInt KCreateRandomAmountOfGroups = -9999; |
|
27 |
|
28 class CCreatorModuleBaseParameters; |
|
29 |
|
30 class CCreatorPhonebookBase : public CBase, public MCreatorModuleBase{ |
|
31 public: |
|
32 |
|
33 virtual TInt CreateContactEntryL(CCreatorModuleBaseParameters *aParameters) = 0; |
|
34 virtual TInt CreateGroupEntryL(CCreatorModuleBaseParameters *aParameters) = 0; |
|
35 virtual TInt CreateSubscribedContactEntryL(CCreatorModuleBaseParameters *aParameters) = 0; |
|
36 virtual TBool AskDataFromUserL(TInt aCommand, TInt& aNumberOfEntries); // from MCreatorModuleBase |
|
37 virtual TBool IsActive() = 0; |
|
38 virtual void CancelOperation() = 0; |
|
39 virtual void DeleteAllGroupsL() = 0; |
|
40 virtual void DeleteAllGroupsCreatedByCreatorL() = 0; |
|
41 |
|
42 protected: |
|
43 |
|
44 virtual void SetDefaultParameters(); |
|
45 TInt iNumberOfPhoneNumberFields; |
|
46 TInt iNumberOfURLFields; |
|
47 TInt iNumberOfEmailAddressFields; |
|
48 TInt iContactsInGroup; |
|
49 TBool iDefaultFieldsSelected; |
|
50 }; |
|
51 |
|
52 |
|
53 #endif /*__CCREATORPHONEBOOKBASE_H_*/ |
|