srsf/nssvasapi/nssvasdb/src/nssvasbackupobserver.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2004-2006 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:  Watcher for the PC-Suite data sync state
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NSSBACKUPOBSERVER_H
       
    20 #define NSSBACKUPOBSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 // Publish & Subscribe of the contact handler activity
       
    27 #include <e32property.h>  
       
    28 #include "nssvascvasdb.h"
       
    29 
       
    30 // CONSTANTS
       
    31 
       
    32 
       
    33 // MACROS
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 
       
    40 /**
       
    41 * RProperty based data sync watcher implementation
       
    42 */
       
    43 NONSHARABLE_CLASS( CNssVasBackupObserver ) : public CActive
       
    44     {
       
    45     public:
       
    46         /** 
       
    47         *  Factory construction
       
    48         *  @param aDb Database 
       
    49         *  @return Constructed and already started observer
       
    50         */
       
    51         static CNssVasBackupObserver* NewL( CNssVasDb& aDb );
       
    52         
       
    53         /** 
       
    54         * Destructor 
       
    55         */
       
    56         ~CNssVasBackupObserver();
       
    57         
       
    58     private:
       
    59         /**
       
    60         * C++ constructor 
       
    61         */
       
    62         CNssVasBackupObserver( CNssVasDb& aDb );
       
    63         
       
    64         /**
       
    65         * Symbian second phase constructor 
       
    66         */
       
    67         void ConstructL();
       
    68         
       
    69         /**
       
    70         * is called when data sync property changed 
       
    71         */
       
    72         void RunL();
       
    73         
       
    74         /**
       
    75         * Is called when system wants immediate cancelling of the watching 
       
    76         */
       
    77         void DoCancel();
       
    78         
       
    79     private:
       
    80         // Publish & Sunscribe property about backup/restore 
       
    81         RProperty   iProperty;
       
    82         
       
    83         // Database to be notified about the backup/restore
       
    84         CNssVasDb& iDb;
       
    85     };
       
    86 
       
    87 #endif // NSSBACKUPOBSERVER_H
       
    88             
       
    89 // End of File