pimappservices/calendar/shared/inc/agmfilechangenotification.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 __AGMFILECHANGENOTIFICATION_H__
       
    17 #define __AGMFILECHANGENOTIFICATION_H__  
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <gdi.h>
       
    21 
       
    22 #include "calfilechangenotification.h"
       
    23 
       
    24 class RReadStream;
       
    25 class RWriteStream;
       
    26 
       
    27 /** The calendar info class where metadata of a calendar file is set and retrieved.
       
    28 
       
    29 @publishedAll
       
    30 @released
       
    31 */
       
    32 NONSHARABLE_CLASS(CAgnFileChangeInfo) : public CBase
       
    33     {
       
    34 public:
       
    35     IMPORT_C static CAgnFileChangeInfo* NewL(HBufC* aFileName, MCalFileChangeObserver::TChangeType aChangeType);
       
    36     IMPORT_C static CAgnFileChangeInfo* NewL(RReadStream& aReadStream);
       
    37     IMPORT_C ~CAgnFileChangeInfo();
       
    38      
       
    39     /** Get the file name of the file that has changed */
       
    40     IMPORT_C const TDesC& FileNameL() const;
       
    41      
       
    42     /** Get the type of change that happened to the file */
       
    43     IMPORT_C MCalFileChangeObserver::TChangeType ChangeType() const;
       
    44     IMPORT_C void InternalizeL(RReadStream& aReadStream);
       
    45     IMPORT_C void ExternalizeL(RWriteStream& aWriteStream) const;
       
    46      
       
    47  private:
       
    48     CAgnFileChangeInfo();
       
    49     CAgnFileChangeInfo(HBufC* aFileName, MCalFileChangeObserver::TChangeType aChangeType);
       
    50 
       
    51  private:
       
    52     HBufC* iCalendarFileName;
       
    53     MCalFileChangeObserver::TChangeType iChangeType;
       
    54     };
       
    55 
       
    56 #endif