eapol/eapol_framework/eapol_symbian/eap_server/include/EapServerBackup.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     1 /*
       
     2 * Copyright (c) 2001-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 the License "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:  EAP-server backup and restore.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 4 %
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef _EAP_SERVER_BACKUP_H_
       
    24 #define _EAP_SERVER_BACKUP_H_
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <e32property.h>
       
    28 
       
    29 /**
       
    30  @file
       
    31 */
       
    32 
       
    33 //------------------------------------------------------------------------------------------------
       
    34 
       
    35 class AbsEapserverBackup
       
    36 {
       
    37 
       
    38 public:
       
    39 
       
    40 	virtual void BackupOrRestoreCompleteL() = 0;
       
    41 
       
    42 	virtual void BackupOrRestoreStartingL() = 0;
       
    43 };
       
    44 
       
    45 //------------------------------------------------------------------------------------------------
       
    46 
       
    47 class CEapserverBackup
       
    48 : public CActive
       
    49 {
       
    50 
       
    51 public:
       
    52 
       
    53 	static CEapserverBackup* NewL(AbsEapserverBackup * const aBackupAndRestoreObserver);
       
    54 
       
    55 	virtual ~CEapserverBackup();
       
    56 
       
    57 	TBool IsBackupOrRestoreInProgress();
       
    58 
       
    59 	CEapserverBackup(AbsEapserverBackup * const aBackupAndRestoreObserver);
       
    60 
       
    61 	void ConstructL();
       
    62 
       
    63 private:
       
    64 
       
    65 	void RunL();
       
    66 
       
    67 	void DoCancel();
       
    68 
       
    69 private:
       
    70 
       
    71 	AbsEapserverBackup * iBackupAndRestoreObserver;
       
    72 
       
    73 	RProperty iBackupProperty;
       
    74 
       
    75 	TBool iBackupOrRestoreInProgress;
       
    76 };
       
    77 
       
    78 #endif // _EAP_SERVER_BACKUP_H_
       
    79 
       
    80 // End of file.