messagingapp/msgappfw/server/inc/ccsbackuphandler.h
changeset 44 36f374c67aa8
equal deleted inserted replaced
43:35b64624a9e7 44:36f374c67aa8
       
     1 // Copyright (c) 2010 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 //
       
    15 
       
    16 
       
    17 #include <babackup.h>
       
    18 #include <f32file.h>
       
    19 
       
    20 class CCsServer;
       
    21 
       
    22 class CCsBackUpHandler: public CBase, public MBackupObserver
       
    23 {
       
    24 public:
       
    25     static CCsBackUpHandler* NewL(CCsServer& aServer);
       
    26     ~CCsBackUpHandler();
       
    27     // from MBackupObserver
       
    28     virtual void ChangeFileLockL(const TDesC& aFileAffected, TFileLockFlags aFlags);
       
    29 
       
    30 private:
       
    31     void ConstructL();
       
    32     CCsBackUpHandler(CCsServer& aServer);
       
    33     void CloseConversationsDbL();
       
    34     void OpenConversationsDbL();
       
    35 
       
    36 private:
       
    37     CBaBackupSessionWrapper* iBackup;  
       
    38     TFileName iFileName;
       
    39     CCsServer& iServer;
       
    40 };
       
    41