harvesterplugins/tsrc/harvesterplugintester/inc/ccalendarobserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:39:26 +0300
changeset 7 51d10d255e92
parent 0 ccd0fd43f247
child 9 4a2987baf8f7
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


#ifndef CCALENDAROBSERVER_H_
#define CCALENDAROBSERVER_H_
#include "calsession.h"
#include "calentryview.h"
#include <calentry.h>
#include "calprogresscallback.h"
_LIT8(KGuid, "AGlobalUid");

class CCalendarObserver : public MCalProgressCallBack 
{
public:
    static CCalendarObserver* NewL();   
    virtual ~CCalendarObserver();
    
private:
    void ConstructL();
    CCalendarObserver();
    
public:    
    
    void Progress(TInt aPercentageCompleted);
    void Completed(TInt aError);
    TBool NotifyProgress();
    
    void AddEntryL();
    void UpdateCalenderEntryL();
    void DeleteEntryL();
    void AddNoteL( TPtr8 aMemo);
    void DeleteNoteEntryL();
    void UpdateNoteEntryL( TPtr8 aOldString, TPtr8 aNewString );
    
private:
    CCalSession* iSession;
    CCalEntryView* iCalEntryView;
    CActiveSchedulerWait* iWaiter;
    HBufC8* iUid;
};

#endif /* CCALENDAROBSERVER_H_ */