fotaapplication/fotacustcmds/src/fotacustcmdfirstboot.cpp
branchRCL_3
changeset 25 b183ec05bd8c
equal deleted inserted replaced
24:13d7c31c74e0 25:b183ec05bd8c
       
     1 /*
       
     2 * Copyright (c) 2009 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 * Implementation of CFotaCustCmdFirstBoot class.
       
    16 *
       
    17 */
       
    18 
       
    19 #include "fotacustcmdfirstboot.h"
       
    20 #include "fotastartupDebug.h"
       
    21 //#include "trace.h"
       
    22 
       
    23 // ======== MEMBER FUNCTIONS ========
       
    24 
       
    25 // ---------------------------------------------------------------------------
       
    26 // CFotaCustCmdFirstBoot::NewL
       
    27 // ---------------------------------------------------------------------------
       
    28 //
       
    29 CFotaCustCmdFirstBoot* CFotaCustCmdFirstBoot::NewL()
       
    30 	{
       
    31    FLOG( _L( "[CFotaCustCmdFirstBoot::NewL()  " ) );
       
    32 	return new ( ELeave ) CFotaCustCmdFirstBoot;
       
    33 	}
       
    34 
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // CFotaCustCmdFirstBoot::~CFotaCustCmdFirstBoot
       
    38 // ---------------------------------------------------------------------------
       
    39 //
       
    40 CFotaCustCmdFirstBoot::~CFotaCustCmdFirstBoot()
       
    41     {
       
    42       FLOG( _L( "[CFotaCustCmdFirstBoot::~CFotaCustCmdFirstBoot()  " ) );
       
    43     }
       
    44 
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // CFotaCustCmdFirstBoot::Initialize
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 TInt CFotaCustCmdFirstBoot::Initialize( CSsmCustomCommandEnv* /*aCmdEnv*/ )
       
    51     {
       
    52   
       
    53   FLOG( _L( "[CFotaCustCmdFirstBoot::Initialize()  " ) );
       
    54 
       
    55     return KErrNone;
       
    56     }
       
    57 
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // CFotaCustCmdFirstBoot::Execute
       
    61 // ---------------------------------------------------------------------------
       
    62 //
       
    63 void CFotaCustCmdFirstBoot::Execute(
       
    64     const TDesC8& /*aParams*/,
       
    65     TRequestStatus& aRequest )
       
    66     {
       
    67     	     aRequest = KRequestPending;
       
    68    FLOG( _L( "[CFotaCustCmdFirstBoot::Execute()  " ) );
       
    69     #ifdef __PLUG_AND_PLAY_MOBILE_SERVICES 
       
    70       FLOG( _L( "NOTHING TO DO   " ) );
       
    71     #endif
       
    72       TRequestStatus* request = &aRequest;
       
    73       User::RequestComplete( request, KErrNone );
       
    74 
       
    75     
       
    76     }
       
    77 
       
    78 
       
    79 // ---------------------------------------------------------------------------
       
    80 // CFotaCustCmdFirstBoot::ExecuteCancel
       
    81 // ---------------------------------------------------------------------------
       
    82 //
       
    83 void CFotaCustCmdFirstBoot::ExecuteCancel()
       
    84     {
       
    85       FLOG( _L( "[CFotaCustCmdFirstBoot::ExecuteCancel()  " ) );
       
    86 
       
    87     
       
    88     }
       
    89 
       
    90 
       
    91 // ---------------------------------------------------------------------------
       
    92 // CFotaCustCmdFirstBoot::Close
       
    93 // ---------------------------------------------------------------------------
       
    94 //
       
    95 void CFotaCustCmdFirstBoot::Close()
       
    96     {
       
    97      FLOG( _L( "[CFotaCustCmdFirstBoot::Close()  " ) );
       
    98     }
       
    99 
       
   100 
       
   101 // ---------------------------------------------------------------------------
       
   102 // CFotaCustCmdFirstBoot::Release
       
   103 // ---------------------------------------------------------------------------
       
   104 //
       
   105 void CFotaCustCmdFirstBoot::Release()
       
   106     {
       
   107      FLOG( _L( "[CFotaCustCmdFirstBoot::Release()  " ) );
       
   108 
       
   109 	delete this;
       
   110     }