helix_ren/helixrfsplugin/src/RfsHelixPlugin.cpp
changeset 0 d7e778ce6e8e
equal deleted inserted replaced
-1:000000000000 0:d7e778ce6e8e
       
     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 
       
    21 
       
    22 #include "RfsHelixPlugin.h"
       
    23 
       
    24 
       
    25 CRfsHelixPlugin::CRfsHelixPlugin()
       
    26     {
       
    27     }
       
    28 
       
    29 CRfsHelixPlugin::CRfsHelixPlugin(TAny* /*aInitParams*/)
       
    30     {
       
    31     }
       
    32 
       
    33 
       
    34 CRfsHelixPlugin::~CRfsHelixPlugin()
       
    35     {
       
    36     }
       
    37 
       
    38 
       
    39 // ---------------------------------------------------------
       
    40 // NewL
       
    41 // ---------------------------------------------------------
       
    42 //
       
    43 CRfsHelixPlugin* CRfsHelixPlugin::NewL(TAny* aInitParams)
       
    44     {
       
    45     #ifdef _DEBUG
       
    46         RDebug::Print(_L("CRfsHelixPlugin::NewL()"));
       
    47     #endif
       
    48     CRfsHelixPlugin* self = new (ELeave) CRfsHelixPlugin(aInitParams);
       
    49     CleanupStack::PushL(self);
       
    50     self->ConstructL();
       
    51     CleanupStack::Pop();
       
    52     return self;
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------
       
    56 // ConstructL
       
    57 // ---------------------------------------------------------
       
    58 //
       
    59 
       
    60 void CRfsHelixPlugin::ConstructL()
       
    61     {
       
    62     #ifdef _DEBUG
       
    63         RDebug::Print(_L("CRfsHelixPlugin::ConstructL()"));
       
    64     #endif
       
    65     }
       
    66 
       
    67 // ---------------------------------------------------------
       
    68 // RestoreFactorySettingsL
       
    69 // ---------------------------------------------------------
       
    70 //
       
    71 
       
    72 #ifdef _DEBUG
       
    73 void CRfsHelixPlugin::RestoreFactorySettingsL( const TRfsReason aType )
       
    74 #else
       
    75 void CRfsHelixPlugin::RestoreFactorySettingsL( const TRfsReason /* aType */)
       
    76 #endif
       
    77     {
       
    78     #ifdef _DEBUG
       
    79         RDebug::Print(_L("CRfsHelixPlugin::RestoreFactorySettingsL(%d)"), aType);
       
    80     #endif
       
    81     RFs fsrv;
       
    82 
       
    83     _LIT(KRNUserConfigNameAndPath,     "c:\\data\\R1_Mobile_4_0.cfg");
       
    84     _LIT(KRNPluginArchiveNameAndPath,  "c:\\data\\plugin_archive.txt");
       
    85 	_LIT(KRNMDEngineNameAndPath,  "c:\\data\\HXMDEngine_3_2.cfg");
       
    86 	_LIT(KRNMetadataArchiveNameAndPath,  "c:\\data\\hxmetadata_archive.txt");
       
    87 	_LIT(KRNThumbnailArchiveNameAndPath,  "c:\\data\\hxthumbnail_archive.txt");
       
    88 	_LIT(KRNTNEngineNameAndPath,  "c:\\data\\HXTNEngine_3_2.cfg");
       
    89 	_LIT(KRNMdfPluginArchiveNameAndPath,  "c:\\data\\MdfPluginArchive.txt");
       
    90 
       
    91     TInt err = KErrNone;
       
    92 
       
    93     CleanupClosePushL( fsrv );
       
    94 
       
    95     err = fsrv.Connect();
       
    96     if ( err != KErrNone )
       
    97         {
       
    98         User::Leave( err );
       
    99         }
       
   100     // Delete all the cfg-files.
       
   101     //
       
   102     fsrv.Delete(KRNUserConfigNameAndPath);
       
   103     fsrv.Delete(KRNPluginArchiveNameAndPath);
       
   104 	fsrv.Delete(KRNMDEngineNameAndPath);
       
   105 	fsrv.Delete(KRNMetadataArchiveNameAndPath);
       
   106 	fsrv.Delete(KRNThumbnailArchiveNameAndPath);
       
   107 	fsrv.Delete(KRNTNEngineNameAndPath);
       
   108 	fsrv.Delete(KRNMdfPluginArchiveNameAndPath);
       
   109 
       
   110     CleanupStack::PopAndDestroy( 1 );
       
   111     }
       
   112 
       
   113 
       
   114 
       
   115 void CRfsHelixPlugin::GetScriptL( const TRfsReason /*aType*/, TDes& /*aPath*/ )
       
   116     {
       
   117 
       
   118     }
       
   119 
       
   120 
       
   121 
       
   122 void CRfsHelixPlugin::ExecuteCustomCommandL( const TRfsReason /*aType*/,
       
   123                                            TDesC& /*aCommand*/ )
       
   124     {
       
   125 
       
   126     }
       
   127 
       
   128