author | Maximilian Odendahl <maxodendahl@gmail.com> |
Fri, 26 Feb 2010 17:47:09 +0000 | |
branch | RCL_3 |
changeset 6 | 5a04f2ceabfe |
parent 1 | 4927282092b4 |
permissions | -rw-r--r-- |
6
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
1 |
/* |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
2 |
* Copyright (c) 2010 Sun Microsystems, Inc. and/or its subsidiary(-ies). |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
3 |
* All rights reserved. |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
8 |
* |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
9 |
* Initial Contributor: |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
10 |
* Maximilian Odendahl |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
11 |
* |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
12 |
* Contributors: |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
13 |
* |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
14 |
* Description: provides a manager to keep track of all available engines |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
15 |
* |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
16 |
*/ |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
17 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
18 |
#ifndef CCALDAVENGINEMGR_H |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
19 |
#define CCALDAVENGINEMGR_H |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
20 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
21 |
// INCLUDES |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
22 |
#include <e32std.h> |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
23 |
#include <e32base.h> |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
24 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
25 |
#include <calprogresscallback.h> |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
26 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
27 |
class CCalDavEngine; |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
28 |
/** |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
29 |
* CCalDavEngineMgr |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
30 |
* |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
31 |
*/ |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
32 |
class CCalDavEngineMgr : public CBase, MCalProgressCallBack |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
33 |
{ |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
34 |
public: |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
35 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
36 |
~CCalDavEngineMgr(); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
37 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
38 |
static CCalDavEngineMgr* NewL(); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
39 |
static CCalDavEngineMgr* NewLC(); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
40 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
41 |
void Progress(TInt aPercentageCompleted); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
42 |
void Completed(TInt aError); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
43 |
TBool NotifyProgress(); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
44 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
45 |
TInt SyncL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
46 |
TInt SyncAllL(); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
47 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
48 |
TInt EnableL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
49 |
TInt DisableL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
50 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
51 |
TBool EnabledSyncL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
52 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
53 |
TPtrC8 UrlL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
54 |
void SetUrlL(const TDesC &aCalendar, const TDesC8 &aUrl); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
55 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
56 |
TPtrC8 UsernameL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
57 |
void SetUsernameL(const TDesC &aCalendar, const TDesC8 &aUsername); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
58 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
59 |
TPtrC8 PasswordL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
60 |
void SetPasswordL(const TDesC &aCalendar, const TDesC8 &aPassword); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
61 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
62 |
// TODO do also if enable was not called yet? if yes, create CalDavEngine and store settings |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
63 |
TTimeIntervalMinutes SyncIntervalL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
64 |
void SetSyncIntervalL(const TDesC &aCalendar, |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
65 |
TTimeIntervalMinutes aSyncInterval); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
66 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
67 |
TTimeIntervalDays PastDaysL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
68 |
void SetPastDaysL(const TDesC &aCalendar, TTimeIntervalDays aDays); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
69 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
70 |
TBool ImmediateSyncL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
71 |
void SetImmediateSyncL(const TDesC &aCalendar, TBool aImmediateSyc); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
72 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
73 |
TBool KeepServerEntryL(const TDesC &aCalendar); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
74 |
void SetKeepServerEntryL(const TDesC &aCalendar, TBool aKeepServerEntry); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
75 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
76 |
private: |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
77 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
78 |
CCalDavEngineMgr(); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
79 |
void ConstructL(); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
80 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
81 |
TInt FindEngineL(const TDesC &aName, TBool aCreate = EFalse); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
82 |
RPointerArray<CCalDavEngine> iEngines; |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
83 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
84 |
}; |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
85 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
86 |
#endif // CCALDAVENGINEMGR_H |