harvesterplugins/tsrc/harvesterplugintester/inc/ccalendarobserver.h
changeset 0 ccd0fd43f247
child 7 51d10d255e92
equal deleted inserted replaced
-1:000000000000 0:ccd0fd43f247
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation 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 Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CCALENDAROBSERVER_H_
       
    20 #define CCALENDAROBSERVER_H_
       
    21 #include "calsession.h"
       
    22 #include "calentryview.h"
       
    23 #include <calentry.h>
       
    24 #include "calprogresscallback.h"
       
    25 _LIT8(KGuid, "AGlobalUid");
       
    26 
       
    27 class CCalendarObserver : public MCalProgressCallBack 
       
    28 {
       
    29 public:
       
    30     static CCalendarObserver* NewL();   
       
    31     virtual ~CCalendarObserver();
       
    32     
       
    33 private:
       
    34     void ConstructL();
       
    35     CCalendarObserver();
       
    36     
       
    37 public:    
       
    38     
       
    39     void Progress(TInt aPercentageCompleted);
       
    40     void Completed(TInt aError);
       
    41     TBool NotifyProgress();
       
    42     
       
    43     void AddEntryL();
       
    44     void DeleteEntryL();
       
    45     void AddNoteL( TPtr8 aMemo);
       
    46     void DeleteNoteEntryL();
       
    47     void UpdateNoteEntryL( TPtr8 aOldString, TPtr8 aNewString );
       
    48     
       
    49 private:
       
    50     CCalSession* iSession;
       
    51     CCalEntryView* iCalEntryView;
       
    52     CActiveSchedulerWait* iWaiter;
       
    53     HBufC8* iUid;
       
    54 };
       
    55 
       
    56 #endif /* CCALENDAROBSERVER_H_ */