|
1 /* |
|
2 * Copyright (c) 2010 Sun Microsystems, Inc. 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 Contributor: |
|
10 * Maximilian Odendahl |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Client API implementation |
|
15 * Wrapper around RCalDavServer |
|
16 */ |
|
17 |
|
18 #ifndef CCALDAVSESSIONIMPL_H |
|
19 #define CCALDAVSESSIONIMPL_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32std.h> |
|
23 #include <e32base.h> |
|
24 |
|
25 class RCalDavServer; |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * CCalDavSessionImpl |
|
31 * |
|
32 */ |
|
33 class CCalDavSessionImpl : public CBase |
|
34 { |
|
35 public: |
|
36 |
|
37 ~CCalDavSessionImpl(); |
|
38 |
|
39 static CCalDavSessionImpl* NewL(); |
|
40 static CCalDavSessionImpl* NewLC(); |
|
41 |
|
42 TInt Enable(const TDesC &aCalendar); |
|
43 TInt Disable(const TDesC &aCalendar); |
|
44 |
|
45 TInt SyncL(const TDesC &aCalendar); |
|
46 TInt SyncAllL(); |
|
47 |
|
48 TInt Url(const TDesC &aCalendar, TDes8 &aUrl); |
|
49 TInt SetUrl(const TDesC &aCalendar, const TDesC8 &aUrl); |
|
50 |
|
51 TInt Username(const TDesC &aCalendar, TDes8 &aUsername); |
|
52 TInt SetUsername(const TDesC &aCalendar, const TDesC8 &aUsername); |
|
53 |
|
54 TInt Password(const TDesC &aCalendar, TDes8 &aPassword); |
|
55 TInt SetPassword(const TDesC &aCalendar, const TDesC8 &aPassword); |
|
56 |
|
57 TInt SyncInterval(const TDesC &aCalendar, |
|
58 TTimeIntervalMinutes& aSyncInterval); |
|
59 TInt SetSyncInterval(const TDesC &aCalendar, |
|
60 TTimeIntervalMinutes aSyncInterval); |
|
61 |
|
62 TInt PastDays(const TDesC &aCalendar, TTimeIntervalDays &aDays); |
|
63 TInt SetPastDays(const TDesC &aCalendar, TTimeIntervalDays aDays); |
|
64 |
|
65 TInt ImmediateSync(const TDesC &aCalendar, TBool &aImmediateSyc); |
|
66 TInt SetImmediateSync(const TDesC &aCalendar, TBool aImmediateSyc); |
|
67 |
|
68 TInt KeepServerEntry(const TDesC &aCalendar, TBool &aKeepServerEntry); |
|
69 TInt SetKeepServerEntry(const TDesC &aCalendar, TBool aKeepServerEntry); |
|
70 |
|
71 TInt EnabledSync(const TDesC &aCalendar, TBool &aEnabledSync); |
|
72 |
|
73 private: |
|
74 |
|
75 CCalDavSessionImpl(); |
|
76 void ConstructL(); |
|
77 |
|
78 RCalDavServer* iServer; |
|
79 |
|
80 }; |
|
81 |
|
82 #endif // CCALDAVSESSIONIMPL_H |