browserrfsplugin/src/browserrfsplugin.cpp
changeset 9 1d51612454b5
equal deleted inserted replaced
8:6b5f25f057c2 9:1d51612454b5
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 *
       
     5 * This program is free software: you can redistribute it and/or modify
       
     6 * it under the terms of the GNU Lesser General Public License as published by
       
     7 * the Free Software Foundation, version 2.1 of the License.
       
     8 * 
       
     9 * This program is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12 * GNU Lesser General Public License for more details.
       
    13 *
       
    14 * You should have received a copy of the GNU Lesser General Public License
       
    15 * along with this program.  If not, 
       
    16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/".
       
    17 * 
       
    18 * Description: 
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #include "BrowserRfsPlugin.h"
       
    26 
       
    27 _LIT(KScriptPath, "z:\\resource\\browserrfs.txt");
       
    28 
       
    29 CBrowserRfsPlugin::CBrowserRfsPlugin()
       
    30     {
       
    31     }
       
    32 
       
    33 CBrowserRfsPlugin::CBrowserRfsPlugin(TAny* /*aInitParams*/): CRFSPlugin()
       
    34     {
       
    35     }
       
    36 
       
    37 
       
    38 CBrowserRfsPlugin::~CBrowserRfsPlugin()
       
    39     {
       
    40     }
       
    41 
       
    42 
       
    43 // ---------------------------------------------------------
       
    44 // NewL
       
    45 // ---------------------------------------------------------
       
    46 //
       
    47 CBrowserRfsPlugin* CBrowserRfsPlugin::NewL(TAny* aInitParams)
       
    48     {
       
    49     CBrowserRfsPlugin* self = new (ELeave) CBrowserRfsPlugin(aInitParams);
       
    50     CleanupStack::PushL(self);
       
    51     self->ConstructL();
       
    52     CleanupStack::Pop();
       
    53     return self;
       
    54     }
       
    55 
       
    56 // ---------------------------------------------------------
       
    57 // ConstructL
       
    58 // ---------------------------------------------------------
       
    59 //
       
    60 
       
    61 void CBrowserRfsPlugin::ConstructL()
       
    62     {
       
    63 //    #ifdef _DEBUG
       
    64 //        RDebug::Print(_L("CBrowserRfsPlugin::ConstructL()"));
       
    65 //    #endif
       
    66     }
       
    67 
       
    68 // ---------------------------------------------------------
       
    69 // RestoreFactorySettingsL
       
    70 // ---------------------------------------------------------
       
    71 //
       
    72 
       
    73 //#ifdef _DEBUG
       
    74 void CBrowserRfsPlugin::RestoreFactorySettingsL( const TRfsReason aType )
       
    75 {
       
    76 // TODO:
       
    77 //     We can expand the functionalities here further 
       
    78 //    #ifdef _DEBUG
       
    79 //        RDebug::Print(_L("CBrowserRfsPlugin::RestoreFactorySettings"));
       
    80 //    #endif
       
    81 }
       
    82 
       
    83 
       
    84 
       
    85 
       
    86 void CBrowserRfsPlugin::GetScriptL( const TRfsReason aType, TDes& aPath )
       
    87     {
       
    88         aPath.Copy( KScriptPath);   	
       
    89 /*    if(aType == EDeepRfs)
       
    90         {
       
    91         aPath.Copy(KScriptPath);
       
    92         }
       
    93 */        
       
    94     }
       
    95 
       
    96 
       
    97 
       
    98 void CBrowserRfsPlugin::ExecuteCustomCommandL( const TRfsReason /*aType*/,
       
    99                                            TDesC& /*aCommand*/ )
       
   100     {
       
   101 //    #ifdef _DEBUG
       
   102 //        RDebug::Print(_L("CBrowserRfsPlugin::RestoreFactorySettings"));
       
   103 //    #endif
       
   104     }
       
   105 
       
   106