63
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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 |
#ifndef T_CCAPPCONTACTFETCHER_H
|
|
18 |
#define T_CCAPPCONTACTFETCHER_H
|
|
19 |
|
|
20 |
#include <e32std.h>
|
|
21 |
#include <e32base.h>
|
|
22 |
|
|
23 |
class CCmsContactFieldInfo;
|
|
24 |
class CCmsContactField;
|
|
25 |
class MCCAppContactFieldDataObserver;
|
|
26 |
class CCCAParameter;
|
|
27 |
|
|
28 |
enum TCmsVoIPSupport
|
|
29 |
{
|
|
30 |
ECmsVoIPSupportBasic = 1,
|
|
31 |
ECmsVoIPSupportXspId = 2,
|
|
32 |
ECmsVoIPSupportCallout = 4,
|
|
33 |
ECmsVoIPSupportSip = 8
|
|
34 |
};
|
|
35 |
|
|
36 |
enum TCmsContactStore
|
|
37 |
{
|
|
38 |
ECmsContactStorePbk = 0,
|
|
39 |
ECmsContactStoreSim,
|
|
40 |
ECmsContactStoreSdn
|
|
41 |
};
|
|
42 |
|
|
43 |
enum TCmsContactIdentifierType
|
|
44 |
{
|
|
45 |
ECmsPackedContactLinkArray = 0
|
|
46 |
//ECmsPackedContactLink,
|
|
47 |
//ECmsContactId
|
|
48 |
};
|
|
49 |
|
|
50 |
// -----------------------------------------------------------------------------
|
|
51 |
// CCCAppCmsContactFetcherWrapper
|
|
52 |
// dummy class
|
|
53 |
// -----------------------------------------------------------------------------
|
|
54 |
class CCCAppCmsContactFetcherWrapper : public CBase
|
|
55 |
{
|
|
56 |
public:
|
|
57 |
|
|
58 |
enum TOperationState
|
|
59 |
{
|
|
60 |
EInitial = 0,
|
|
61 |
EOpeningContact = 1,
|
|
62 |
ELoadingEnabledFields = 2,
|
|
63 |
ELoadingFields = 4,
|
|
64 |
EOperationsCompleted = 8
|
|
65 |
};
|
|
66 |
|
|
67 |
CCCAppCmsContactFetcherWrapper( );
|
|
68 |
|
|
69 |
static CCCAppCmsContactFetcherWrapper* InstanceL( CCCAParameter* aParameter );
|
|
70 |
static CCCAppCmsContactFetcherWrapper* InstanceL( );
|
|
71 |
|
|
72 |
void Release();
|
|
73 |
|
|
74 |
//static CCCAppCmsContactFetcherWrapper* HandleL();
|
|
75 |
|
|
76 |
const CCmsContactFieldInfo* ContactInfo();
|
|
77 |
|
|
78 |
RPointerArray<CCmsContactField>& ContactFieldDataArray();
|
|
79 |
|
|
80 |
static HBufC8* ContactIdentifierLC( const TCmsContactIdentifierType aIdType = ECmsPackedContactLinkArray );
|
|
81 |
|
|
82 |
void AddObserverL( MCCAppContactFieldDataObserver& aObserver );
|
|
83 |
|
|
84 |
void RemoveObserver( MCCAppContactFieldDataObserver& aObserver );
|
|
85 |
|
|
86 |
TBool IsServiceAvailable( VPbkFieldTypeSelectorFactory::TVPbkContactActionTypeSelector aContactAction );
|
|
87 |
|
|
88 |
TCmsContactStore ContactStore() const;
|
|
89 |
|
|
90 |
void DeleteContactL() {};
|
|
91 |
|
|
92 |
|
|
93 |
~CCCAppCmsContactFetcherWrapper();
|
|
94 |
void ConstructL();
|
|
95 |
|
|
96 |
TInt GetContactActionFieldCount(
|
|
97 |
VPbkFieldTypeSelectorFactory::TVPbkContactActionTypeSelector aContactAction);
|
|
98 |
|
|
99 |
virtual void RefetchContactL();
|
|
100 |
TBool CCCAppCmsContactFetcherWrapper::IsTopContact();
|
|
101 |
|
|
102 |
RPointerArray<MCCAppContactFieldDataObserver> iObservers;
|
|
103 |
CCmsContactFieldInfo* iContactFieldInfo;
|
|
104 |
RPointerArray<CCmsContactField> iFieldArray;
|
|
105 |
TBool iContactStore_called;
|
|
106 |
TBool iTopContact;
|
|
107 |
};
|
|
108 |
|
|
109 |
|
|
110 |
#endif // T_CCAPPCONTACTFETCHER_H
|