devencdiskutils/DevEncRfsPlugin/src/DevEncRfsPlugin.cpp
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     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: 
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "DevEncRfsPlugin.h"
       
    22 
       
    23 #ifdef _DEBUG
       
    24 #define DEBUG( args... ) RDebug::Print( args )
       
    25 #define DEBUGRAW( rawdata ) RDebug::RawPrint( rawdata )
       
    26 #else
       
    27 #define DEBUG( args... )
       
    28 #define DEBUGRAW( rawdata )
       
    29 #endif
       
    30 
       
    31 // LOCAL CONSTANTS
       
    32 _LIT(KScriptPath, "");
       
    33 
       
    34 // ================= MEMBER FUNCTIONS =======================
       
    35 
       
    36 // C++ default constructor can NOT contain any code, that
       
    37 // might leave.
       
    38 //
       
    39 CDevEncRfsPlugin::CDevEncRfsPlugin()
       
    40     {
       
    41     }
       
    42 
       
    43 CDevEncRfsPlugin::CDevEncRfsPlugin( TAny* /*aInitParams*/ )
       
    44     { 
       
    45     }
       
    46 
       
    47 // Destructor
       
    48 CDevEncRfsPlugin::~CDevEncRfsPlugin()
       
    49     {
       
    50     delete iKeyUtils;
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------
       
    54 // NewL
       
    55 // ---------------------------------------------------------
       
    56 //
       
    57 CDevEncRfsPlugin* CDevEncRfsPlugin::NewL( TAny* aInitParams )
       
    58     {
       
    59     DEBUG( _L("CDevEncRfsPlugin::NewL()") );
       
    60     CDevEncRfsPlugin* self = new (ELeave) CDevEncRfsPlugin( aInitParams );
       
    61     CleanupStack::PushL( self );
       
    62     self->ConstructL();
       
    63     CleanupStack::Pop();
       
    64     return self;
       
    65     }
       
    66 
       
    67 
       
    68 // ---------------------------------------------------------
       
    69 // ConstructL
       
    70 // ---------------------------------------------------------
       
    71 //
       
    72 void CDevEncRfsPlugin::ConstructL()
       
    73     {
       
    74     DEBUG( _L("CDevEncRfsPlugin::ConstructL()") );
       
    75     iKeyUtils  = new (ELeave) CDevEncKeyUtils();
       
    76     }
       
    77 
       
    78 void CDevEncRfsPlugin::RestoreFactorySettingsL( const TRfsReason aType )
       
    79     {
       
    80     DEBUG(_L("CDevEncRfsPlugin::RestoreFactorySettingsL(%d)"), aType);
       
    81     
       
    82     if( aType != EInitRfs )
       
    83     	  {
       
    84         TRequestStatus status;
       
    85         iKeyUtils->ResetKey( status );
       
    86         User::WaitForRequest( status );
       
    87         }
       
    88     }
       
    89 
       
    90 void CDevEncRfsPlugin::GetScriptL( const TRfsReason /*aType*/, TDes& aPath )
       
    91     {
       
    92     aPath.Copy( KScriptPath );
       
    93     }
       
    94 
       
    95 void CDevEncRfsPlugin::ExecuteCustomCommandL( const TRfsReason /*aType*/,
       
    96                                               TDesC& /*aCommand*/ )
       
    97     {
       
    98     }
       
    99 
       
   100 // End of file