pimappservices/calendar/shared/inc/agmcalendarinfoproperty.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 // Copyright (c) 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 
       
    16 #ifndef __AGMCALENDARINFOPROPERTY_H__
       
    17 #define __AGMCALENDARINFOPROPERTY_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 #include "agmcalendarinfo.h"
       
    22 
       
    23 class CAgnCalendarInfoProperty : public CBase
       
    24     {
       
    25 public:
       
    26     enum TState
       
    27         {
       
    28         ENone,
       
    29         EModified,
       
    30         EDeleted
       
    31         };
       
    32     
       
    33 public:
       
    34     static CAgnCalendarInfoProperty* NewLC(const TDesC8& aKey);
       
    35     ~CAgnCalendarInfoProperty();
       
    36     
       
    37     const TDesC8& Key() const;
       
    38     IMPORT_C const TDesC8& Value() const;
       
    39     
       
    40     IMPORT_C void SetValue(HBufC8* aValue);
       
    41     
       
    42     IMPORT_C void SetState(TState aState);
       
    43     IMPORT_C TState State() const;
       
    44     
       
    45     void SetStreamId(TStreamId aStreamId);
       
    46     IMPORT_C TStreamId StreamId() const;
       
    47     
       
    48     static TInt Compare(const CAgnCalendarInfoProperty& aLeft, const CAgnCalendarInfoProperty& aRight);
       
    49     IMPORT_C static TInt Compare(const TDesC8* aKey, const CAgnCalendarInfoProperty& aProperty);
       
    50     
       
    51 private:
       
    52     CAgnCalendarInfoProperty();
       
    53     void ConstructL(const TDesC8& aKey);
       
    54     
       
    55 private:
       
    56     HBufC8* iKey;
       
    57     HBufC8* iValue;
       
    58     TState iState;
       
    59     TStreamId iStreamId;
       
    60     };
       
    61 
       
    62 #endif
       
    63