dbcreator/commsdatstartup/Inc/cdccommsdatstartup.h
changeset 0 5a93021fdf25
child 27 489cf6208544
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2006,2007 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:   Declaration of CCommsDatStartup class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CDC_COMMSDAT_STARTUP_H
       
    22 #define CDC_COMMSDAT_STARTUP_H
       
    23 
       
    24 // INCLUDE FILES
       
    25 #include <e32base.h>
       
    26 #include <bacline.h>
       
    27 #include <f32file.h>
       
    28 
       
    29 class CRepository;
       
    30 
       
    31 
       
    32 // CONSTANTS
       
    33 
       
    34 
       
    35 // DATA TYPES
       
    36 
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 
       
    40 
       
    41 // CLASS DECLARATION
       
    42 
       
    43 
       
    44 /**
       
    45 * CCdcCommsDatStartup checks the conditions if commsdat creation is enabled.
       
    46 * If yes starts commsdat creation and indicates the result after launch.
       
    47 */
       
    48 class CCdcCommsDatStartup : public CBase
       
    49     {
       
    50 
       
    51     public:
       
    52     
       
    53     /**
       
    54     * CCdcCommsDatStartup checks the conditions if commsdat creation is enabled.
       
    55     * If yes starts commsdat creation and indicates the result after launch.
       
    56     */
       
    57     void DoStartL();
       
    58         
       
    59     ~CCdcCommsDatStartup();
       
    60      
       
    61           
       
    62     private:
       
    63     
       
    64     /*
       
    65     * Checks the creator UID. It leaves if it is not CdcCommsDatRfsPlugin.
       
    66     * It is done by security reasons.
       
    67     */
       
    68     void CheckCreatorUIdL();
       
    69 
       
    70     /*
       
    71     * Reads the database descriptor input file name
       
    72     * @param out: Name of the database descriptor file 
       
    73     */
       
    74     void GetInputFileNameL( TFileName &aFileName );
       
    75 
       
    76     /*
       
    77     * Creates repository
       
    78     */
       
    79     void CreateRepositoryL();
       
    80 
       
    81    	/**
       
    82     * Resets the commsdat repository. This causes the default Commsdat
       
    83     * from z to be copied to c
       
    84     */
       
    85     void ResetCommsDatToDefaultL();
       
    86     
       
    87     /**
       
    88     * Deletes the EAP DBMS database files from c:\ thus reseting the settings    
       
    89     */
       
    90     void ResetEAPSettingsL();
       
    91     
       
    92     /*
       
    93     * Sets the startup status
       
    94     * @param startup status to be set.
       
    95     */
       
    96     void SetStartupStatusL( TInt aStatus );
       
    97     
       
    98     // Repository
       
    99     CRepository *iRepository;
       
   100 
       
   101     };
       
   102 
       
   103 
       
   104 #endif // CDC_COMMSDAT_STARTUP_H
       
   105