applicationmanagement/RfsPlugin/src/RfsAppMgmtPlugin.cpp
changeset 42 aa33c2cb9a50
parent 0 3ce708148e4d
child 67 fdbfe0a95492
equal deleted inserted replaced
41:c742e1129640 42:aa33c2cb9a50
       
     1 /*
       
     2 * Copyright (c) 2005 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: Implementation of applicationmanagement components
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "ApplicationManagementRfs.h"
       
    22 #include "RfsAppMgmtPlugin.h"
       
    23 #include "debug.h"
       
    24 
       
    25 _LIT(KScriptPath, "");
       
    26 
       
    27 // ================= MEMBER FUNCTIONS =======================
       
    28 
       
    29 // C++ default constructor can NOT contain any code, that
       
    30 // might leave.
       
    31 //
       
    32 CRfsAppMgmtPlugin::CRfsAppMgmtPlugin()
       
    33     {
       
    34     }
       
    35 
       
    36 CRfsAppMgmtPlugin::CRfsAppMgmtPlugin(TAny* /*aInitParams*/)
       
    37     {
       
    38     }
       
    39 
       
    40 // Destructor
       
    41 CRfsAppMgmtPlugin::~CRfsAppMgmtPlugin()
       
    42     {
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------
       
    46 // NewL
       
    47 // ---------------------------------------------------------
       
    48 //
       
    49 CRfsAppMgmtPlugin* CRfsAppMgmtPlugin::NewL(TAny* aInitParams)
       
    50     {
       
    51     RDEBUG("CRfsAppMgmtPlugin::NewL()");
       
    52     CRfsAppMgmtPlugin* self = new (ELeave) CRfsAppMgmtPlugin(aInitParams);
       
    53     CleanupStack::PushL(self);
       
    54     self->ConstructL();
       
    55     CleanupStack::Pop();
       
    56     return self;
       
    57     }
       
    58 
       
    59 
       
    60 // ---------------------------------------------------------
       
    61 // ConstructL
       
    62 // ---------------------------------------------------------
       
    63 //
       
    64 void CRfsAppMgmtPlugin::ConstructL()
       
    65     {
       
    66     RDEBUG("CRfsAppMgmtPlugin::ConstructL()");
       
    67     }
       
    68 
       
    69 void CRfsAppMgmtPlugin::RestoreFactorySettingsL( const TRfsReason /*aType*/ )
       
    70     {
       
    71     RDEBUG("CRfsAppMgmtPlugin::RestoreFactorySettingsL()");
       
    72     RAppMgmtRfs appManagement;
       
    73     if( appManagement.Connect() == KErrNone )
       
    74         {
       
    75         RDEBUG("CRfsAppMgmtPlugin::RestoreFactorySettingsL(): Connected to AppMgmt ");
       
    76         appManagement.PerformRfsL();
       
    77         appManagement.Close();
       
    78         }
       
    79     else
       
    80         {
       
    81         RDEBUG("CStartupAppUi::RTCStatus(): Unable to connect to AppMgmt ");
       
    82         }
       
    83     }
       
    84 
       
    85 void CRfsAppMgmtPlugin::GetScriptL( const TRfsReason /*aType*/, TDes& aPath )
       
    86     {
       
    87     aPath.Copy( KScriptPath);
       
    88     }
       
    89 
       
    90 void CRfsAppMgmtPlugin::ExecuteCustomCommandL( const TRfsReason /*aType*/,
       
    91                                         TDesC& /*aCommand*/ )
       
    92     {
       
    93     }
       
    94 
       
    95 // End of file