locationdataharvester/mylocationsengine/inc/calendernotification.h
branchRCL_3
changeset 17 1fc85118c3ae
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
       
     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: calender db create notification .
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CALENDERNOTIFICATION_H_
       
    19 #define CALENDERNOTIFICATION_H_
       
    20 
       
    21 // INCLUDES
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <f32file.h>
       
    25 #include "notification.h" 
       
    26 /**  
       
    27  * The observer class gives notification to derive class .
       
    28  * When calender db creates in specific path.
       
    29  */
       
    30 
       
    31 class CCalenderNotification : public CActive
       
    32 {
       
    33 public:
       
    34     /** 
       
    35      * CCalenderNotification::NewL()
       
    36      */
       
    37     static CCalenderNotification* NewL(MNotifyChange* aNotifyChange);
       
    38 
       
    39     /** 
       
    40      * CCalenderNotification::NewL()
       
    41      */
       
    42     static CCalenderNotification* NewLC(MNotifyChange* aNotifyChange);
       
    43     /**
       
    44      * ~CCalenderNotification.
       
    45      * Virtual Destructor.
       
    46      */
       
    47     virtual ~ CCalenderNotification();
       
    48 
       
    49 private:
       
    50     /**
       
    51      * ConstructL.
       
    52      * 2nd phase constructor.
       
    53      */
       
    54     void ConstructL();
       
    55     /**
       
    56      * CMyLocationsEngine.
       
    57      * C++ default constructor. 
       
    58      */
       
    59     CCalenderNotification(MNotifyChange* aNotifyChange);
       
    60     
       
    61 public:
       
    62     
       
    63     /**
       
    64      * CheckCalenderDbFileStructure.
       
    65      * Observes the calendar db file structure changes. 
       
    66      */
       
    67     void CheckCalenderDbFileStructure( TChar aDrive );
       
    68 
       
    69     /**
       
    70      *  Handles active object's request completion event. 
       
    71      */
       
    72     void RunL();
       
    73     /** 
       
    74      * Implements cancellation of an outstanding request. 
       
    75      */
       
    76     void DoCancel();
       
    77 private:
       
    78     //data member
       
    79     //file server 
       
    80     RFs iFsession;
       
    81     //observer to provide notification on completion of event
       
    82     MNotifyChange& iNotifyChange;
       
    83 };
       
    84 #endif /* CALENDERNOTIFICATION_H_ */
       
    85 //End of file