calendarengines/caldav/inc/caldavclient.h
branchRCL_3
changeset 87 6d3f83773253
parent 74 97232defd20e
equal deleted inserted replaced
86:ed599363c2d7 87:6d3f83773253
       
     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: provides a client API for Caldav server
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef _CALDAVCLIENT_H
       
    19 #define _CALDAVCLIENT_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 //**********************************
       
    24 //RCalDavServer
       
    25 //**********************************
       
    26 
       
    27 static TInt StartServer();
       
    28 
       
    29 class RCalDavServer : public RSessionBase
       
    30 	{
       
    31 public:
       
    32     IMPORT_C RCalDavServer();
       
    33     IMPORT_C TInt Connect();
       
    34 
       
    35     IMPORT_C TInt Enable(const TDesC &aCalendar);
       
    36     IMPORT_C TInt Disable(const TDesC &aCalendar);
       
    37 
       
    38     IMPORT_C TInt EnabledSync(const TDesC &aCalendar, TBool &aEnabled);
       
    39 
       
    40     IMPORT_C TInt Sync(const TDesC &aCalendar);
       
    41     IMPORT_C TInt SyncAll();
       
    42 
       
    43     IMPORT_C TInt Url(const TDesC &aCalendar, TDes8 &aUrl);
       
    44     IMPORT_C TInt SetUrl(const TDesC &aCalendar, const TDesC8 &aUrl);
       
    45 
       
    46     IMPORT_C TInt Username(const TDesC &aCalendar, TDes8 &aUsername);
       
    47     IMPORT_C TInt SetUsername(const TDesC &aCalendar, const TDesC8 &aUsername);
       
    48 
       
    49     IMPORT_C TInt Password(const TDesC &aCalendar, TDes8 &aPassword);
       
    50     IMPORT_C TInt SetPassword(const TDesC &aCalendar, const TDesC8 &aPassword);
       
    51 
       
    52     IMPORT_C TInt SyncInterval(const TDesC &aCalendar,
       
    53 			TTimeIntervalMinutes& aSyncInterval);
       
    54     IMPORT_C TInt SetSyncInterval(const TDesC &aCalendar,
       
    55 			TTimeIntervalMinutes aSyncInterval);
       
    56 
       
    57     IMPORT_C TInt PastDays(const TDesC &aCalendar, TTimeIntervalDays &aDays);
       
    58     IMPORT_C TInt SetPastDays(const TDesC &aCalendar, TTimeIntervalDays aDays);
       
    59 
       
    60     IMPORT_C TInt ImmediateSync(const TDesC &aCalendar, TBool &aImmediateSyc);
       
    61     IMPORT_C TInt SetImmediateSync(const TDesC &aCalendar, TBool aImmediateSyc);
       
    62 
       
    63     IMPORT_C TInt KeepServerEntry(const TDesC &aCalendar, TBool &aKeepServerEntry);
       
    64     IMPORT_C TInt SetKeepServerEntry(const TDesC &aCalendar, TBool aKeepServerEntry);
       
    65 
       
    66 	TVersion Version() const;
       
    67 	TInt UnsupportedRequest();
       
    68 	void BadRequest();
       
    69 
       
    70 private:
       
    71 	};
       
    72 
       
    73 #endif
       
    74