calendarengines/caldav/inc/caldavserversession.h
branchRCL_3
changeset 86 ed599363c2d7
parent 78 356f28cd5ca0
child 87 6d3f83773253
equal deleted inserted replaced
78:356f28cd5ca0 86:ed599363c2d7
     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: Caldav server session, follows Symbian 
       
    15 * 				client/server architecture
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CCALDAVSERVERSESSION_H
       
    20 #define CCALDAVSERVERSESSION_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CCalDavServer;
       
    25 
       
    26 //**********************************
       
    27 //CCalDavServerSession
       
    28 //**********************************
       
    29 /**
       
    30  This class represents a session with the  server.
       
    31  Functions are provided to respond appropriately to client messages.
       
    32  */
       
    33 class CCalDavServerSession : public CSession2
       
    34 	{
       
    35 public:
       
    36 	CCalDavServerSession(CCalDavServer &aServer);
       
    37 	void ServiceL(const RMessage2& aMessage);
       
    38 
       
    39 	void EnableL(const RMessage2& aMessage);
       
    40 	void DisableL(const RMessage2& aMessage);
       
    41 
       
    42 	void SyncL(const RMessage2& aMessage);
       
    43 	void SyncAllL(const RMessage2& aMessage);
       
    44 
       
    45 	void UrlL(const RMessage2& aMessage);
       
    46 	void SetUrlL(const RMessage2& aMessage);
       
    47 
       
    48 	void UsernameL(const RMessage2& aMessage);
       
    49 	void SetUsernameL(const RMessage2& aMessage);
       
    50 
       
    51 	void PasswordL(const RMessage2& aMessage);
       
    52 	void SetPasswordL(const RMessage2& aMessage);
       
    53 
       
    54 	void SyncIntervalL(const RMessage2& aMessage);
       
    55 	void SetSyncIntervalL(const RMessage2& aMessage);
       
    56 
       
    57 	void PastDaysL(const RMessage2& aMessage);
       
    58 	void SetPastDaysL(const RMessage2& aMessage);
       
    59 
       
    60 	void ImmediateSyncL(const RMessage2& aMessage);
       
    61 	void SetImmediateSyncL(const RMessage2& aMessage);
       
    62 
       
    63 	void KeepServerEntryL(const RMessage2& aMessage);
       
    64 	void SetKeepServerEntryL(const RMessage2& aMessage);
       
    65 
       
    66 	void EnabledSyncL(const RMessage2& aMessage);
       
    67 
       
    68 	// still there from symbian count example, not part of caldav 
       
    69 	void SetFromStringL(const RMessage2& aMessage);
       
    70 	void Increase();
       
    71 	void Decrease();
       
    72 	void IncreaseBy(const RMessage2& aMessage);
       
    73 	void DecreaseBy(const RMessage2& aMessage);
       
    74 	void CounterValueL(const RMessage2& aMessage);
       
    75 	void Reset();
       
    76 	/********************************************************/
       
    77 
       
    78 protected:
       
    79 	// panic the client
       
    80 	void PanicClient(const RMessage2& aMessage, TInt aPanic) const;
       
    81 
       
    82 private:
       
    83 	void DispatchMessageL(const RMessage2& aMessage);
       
    84 
       
    85 	CCalDavServer& rServer;
       
    86 	TInt iCount;
       
    87 
       
    88 	};
       
    89 
       
    90 #endif
       
    91