dbcreator/commsdatstartup/Inc/cdccommsdatstartup.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 13:17:01 +0300
changeset 27 489cf6208544
parent 0 5a93021fdf25
child 58 83ca720e2b9a
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2006,2007 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Declaration of CCommsDatStartup class.
*
*/




#ifndef CDC_COMMSDAT_STARTUP_H
#define CDC_COMMSDAT_STARTUP_H

// INCLUDE FILES
#include <e32base.h>
#include <bacline.h>
#include <f32file.h>

class CRepository;


// CONSTANTS


// DATA TYPES


// FORWARD DECLARATIONS


// CLASS DECLARATION


/**
* CCdcCommsDatStartup checks the conditions if commsdat creation is enabled.
* If yes starts commsdat creation and indicates the result after launch.
*/
class CCdcCommsDatStartup : public CBase
    {

    public:
    
    /**
    * CCdcCommsDatStartup checks the conditions if commsdat creation is enabled.
    * If yes starts commsdat creation and indicates the result after launch.
    */
    void DoStartL();
        
    ~CCdcCommsDatStartup();
     
          
    private:
    
    /*
    * Checks the creator UID. It leaves if it is not CdcCommsDatRfsPlugin.
    * It is done by security reasons.
    */
    void CheckCreatorUIdL();

   	/**
    * Resets the commsdat repository. This causes the default Commsdat
    * from z to be copied to c
    */
    void ResetCommsDatToDefaultL();
    
    /**
    * Deletes the EAP DBMS database files from c:\ thus reseting the settings    
    */
    void ResetEAPSettingsL();
    
    };


#endif // CDC_COMMSDAT_STARTUP_H