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: Caldav server session, follows Symbian |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
15 |
* client/server architecture |
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 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
19 |
#ifndef CCALDAVSERVERSESSION_H |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
20 |
#define CCALDAVSERVERSESSION_H |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
21 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
22 |
#include <e32base.h> |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
23 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
24 |
class CCalDavServer; |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
25 |
|
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 |
//CCalDavServerSession |
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 |
/** |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
30 |
This class represents a session with the server. |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
31 |
Functions are provided to respond appropriately to client messages. |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
32 |
*/ |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
33 |
class CCalDavServerSession : public CSession2 |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
34 |
{ |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
35 |
public: |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
36 |
CCalDavServerSession(CCalDavServer &aServer); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
37 |
void ServiceL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
38 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
39 |
void EnableL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
40 |
void DisableL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
41 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
42 |
void SyncL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
43 |
void SyncAllL(const RMessage2& aMessage); |
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 |
void UrlL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
46 |
void SetUrlL(const RMessage2& aMessage); |
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 |
void UsernameL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
49 |
void SetUsernameL(const RMessage2& aMessage); |
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 |
void PasswordL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
52 |
void SetPasswordL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
53 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
54 |
void SyncIntervalL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
55 |
void SetSyncIntervalL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
56 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
57 |
void PastDaysL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
58 |
void SetPastDaysL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
59 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
60 |
void ImmediateSyncL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
61 |
void SetImmediateSyncL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
62 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
63 |
void KeepServerEntryL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
64 |
void SetKeepServerEntryL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
65 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
66 |
void EnabledSyncL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
67 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
68 |
// still there from symbian count example, not part of caldav |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
69 |
void SetFromStringL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
70 |
void Increase(); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
71 |
void Decrease(); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
72 |
void IncreaseBy(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
73 |
void DecreaseBy(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
74 |
void CounterValueL(const RMessage2& aMessage); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
75 |
void Reset(); |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
76 |
/********************************************************/ |
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 |
protected: |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
79 |
// panic the client |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
80 |
void PanicClient(const RMessage2& aMessage, TInt aPanic) const; |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
81 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
82 |
private: |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
83 |
void DispatchMessageL(const RMessage2& aMessage); |
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 |
CCalDavServer& rServer; |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
86 |
TInt iCount; |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
87 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
88 |
}; |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
89 |
|
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
90 |
#endif |
5a04f2ceabfe
Merge in fix for Bug 1908
Maximilian Odendahl <maxodendahl@gmail.com>
parents:
1
diff
changeset
|
91 |