tzservices/tzserver/Include/tzuserdefineddata.h
changeset 0 2e3d3ce01487
child 30 fc3225a0ab43
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 #ifndef __TIMEZONE_USERDATA_H__
       
    16 #define __TIMEZONE_USERDATA_H__
       
    17 
       
    18 #include <e32base.h>
       
    19 class RTz;
       
    20 class CTzId;
       
    21 class CTzRules;
       
    22 class CTzUserNames;
       
    23 /**
       
    24 The CTzUserData class allows the client to create, read, update or delete
       
    25 user-defined time zones. 
       
    26 
       
    27 A user-defined time zone is comprised of time zone rules (encapsulated in a
       
    28 CTzRules object) and time zone names (encapsulated in a CTzUserNames object).
       
    29 
       
    30 A time zone identifier (encapsulated in a CTzId object) is used to uniquely
       
    31 identify a user-defined time zone.
       
    32 
       
    33 The CTzUserData class also allows the time zone identifiers for all existing
       
    34 user-defined time zones to be determined. 
       
    35 
       
    36 @publishedPartner
       
    37 @released
       
    38 */
       
    39 class CTzUserData : public CBase
       
    40     {
       
    41 public:
       
    42     IMPORT_C static CTzUserData* NewL(RTz& aTzServer);
       
    43     IMPORT_C ~CTzUserData();
       
    44 
       
    45     IMPORT_C CTzId* CreateL(const CTzRules& aTzUserRules, const CTzUserNames&
       
    46     	aTzUserNames);
       
    47     IMPORT_C CTzRules* ReadRulesL(const CTzId& aTzId) const;
       
    48 	IMPORT_C CTzUserNames* ReadNamesL(const CTzId& aTzId) const;
       
    49     IMPORT_C void UpdateL(const CTzId& aTzId, const CTzRules& aTzUserRules,
       
    50     	const CTzUserNames& aTzUserNames);
       
    51     IMPORT_C void DeleteL(const CTzId& aTzId);
       
    52     IMPORT_C void GetTzIdsL(RPointerArray<CTzId>& aTzIds) const;
       
    53 
       
    54 private:
       
    55     CTzUserData(RTz& aTzServer);
       
    56 	
       
    57 private:
       
    58     RTz& iTzServer;
       
    59 	};
       
    60 #endif //__TIMEZONE_USERDATA_H__