smsprotocols/smsstack/smsu/inc/SmsuBackup.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 1998-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 // Declares CBackupAndRestore
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef SMSU_BACKUP_H__
       
    24 #define SMSU_BACKUP_H__
       
    25 
       
    26 #include <e32base.h>
       
    27 #include "smsuact.h"
       
    28 #include <e32property.h>
       
    29 #include "nbbackuprestoreint.h"
       
    30 
       
    31 
       
    32 class CBackupAndRestore : public CActive
       
    33 	{
       
    34 public:
       
    35 	IMPORT_C static CBackupAndRestore* NewL(MNBBackupAndRestoreObserver& aBackupAndRestoreObserver);
       
    36 	IMPORT_C ~CBackupAndRestore();
       
    37 	IMPORT_C TBool IsBackupOrRestoreInProgress();
       
    38 private:
       
    39 	CBackupAndRestore(MNBBackupAndRestoreObserver& aBackupAndRestoreObserver);
       
    40 	void ConstructL();
       
    41 	void RunL();
       
    42 	void DoCancel();
       
    43 private:
       
    44 	MNBBackupAndRestoreObserver * iBackupAndRestoreObserver;
       
    45 	RProperty iBackupProperty;
       
    46 	TBool iBackupOrRestoreInProgress;
       
    47 	};
       
    48 
       
    49 class MBackupOperationObserver;
       
    50 class CBaBackupSessionWrapper;
       
    51 
       
    52 /**
       
    53  *  @internalComponent
       
    54  */
       
    55 const TInt KSmsuBackupObserverWait = 1000000 * 30; //<30 seconds
       
    56 const TInt KSmsuBackupMaxRetries = 5; //< Number of times to try to connect to the backup server
       
    57 
       
    58 #endif // SMSU_backup_H__