homescreensrv_plat/content_harvester_plugin_api/tsrc/src/cpstestplugin.cpp
changeset 93 82b66994846c
parent 92 782e3408c2ab
child 94 dbb8300717f7
equal deleted inserted replaced
92:782e3408c2ab 93:82b66994846c
     1 /*
       
     2 * Copyright (c) 2007 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:  Exemplary Action Handler Plugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #include "cpstestplugin.h"
       
    22 
       
    23 
       
    24 // ======== MEMBER FUNCTIONS ========
       
    25 
       
    26 // ----------------------------------------------------------------------------
       
    27 // Symbian 2nd phase constructor can leave.
       
    28 // ----------------------------------------------------------------------------
       
    29 //
       
    30 void CCPSTestPlugin::ConstructL()
       
    31     {
       
    32     iInt = KErrNotFound;
       
    33     }
       
    34 
       
    35 // ----------------------------------------------------------------------------
       
    36 // Two-phased constructor.
       
    37 // ----------------------------------------------------------------------------
       
    38 //
       
    39 CCPSTestPlugin* CCPSTestPlugin::NewL()
       
    40     {
       
    41     CCPSTestPlugin* self = CCPSTestPlugin::NewLC();
       
    42     CleanupStack::Pop( self );
       
    43     return self;
       
    44     }
       
    45 
       
    46 // ----------------------------------------------------------------------------
       
    47 // Two-phased constructor.
       
    48 // ----------------------------------------------------------------------------
       
    49 //
       
    50 CCPSTestPlugin* CCPSTestPlugin::NewLC()
       
    51     {
       
    52     CCPSTestPlugin* self = new( ELeave ) CCPSTestPlugin;
       
    53     CleanupStack::PushL( self );
       
    54     self->ConstructL();
       
    55     return self;
       
    56     }
       
    57 
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // destructor
       
    61 // ---------------------------------------------------------------------------
       
    62 CCPSTestPlugin::~CCPSTestPlugin()
       
    63 	{        
       
    64 	}
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // Executes provided action
       
    68 // ---------------------------------------------------------------------------
       
    69 //
       
    70 void CCPSTestPlugin::UpdateL()
       
    71     {
       
    72     iInt = KErrNone; 
       
    73     }
       
    74 
       
    75