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