menufw/menufwui/matrixmenu/src/mmappkeyhandler.cpp
branchv5backport
changeset 14 1abc632eb502
parent 13 6205fd287e8a
child 20 636d517f67e6
equal deleted inserted replaced
13:6205fd287e8a 14:1abc632eb502
     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:  Application UI class
       
    15 *  Version     : %version: 2 % << Don't touch! Updated by Synergy at check-out.
       
    16 *
       
    17 */
       
    18 
       
    19 #include "mmappkeyhandler.h"
       
    20 
       
    21 // ---------------------------------------------------------------------------
       
    22 // 
       
    23 // ---------------------------------------------------------------------------
       
    24 //
       
    25 CMmAppkeyHandler::CMmAppkeyHandler() :
       
    26 	CActive(EPriorityIdle) // Standard priority
       
    27 	{
       
    28 	}
       
    29 
       
    30 // ---------------------------------------------------------------------------
       
    31 // 
       
    32 // ---------------------------------------------------------------------------
       
    33 //
       
    34 CMmAppkeyHandler* CMmAppkeyHandler::NewLC()
       
    35 	{
       
    36 	CMmAppkeyHandler* self = new (ELeave) CMmAppkeyHandler();
       
    37 	CleanupStack::PushL(self);
       
    38 	self->ConstructL();
       
    39 	return self;
       
    40 	}
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // 
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 CMmAppkeyHandler* CMmAppkeyHandler::NewL()
       
    47 	{
       
    48 	CMmAppkeyHandler* self = CMmAppkeyHandler::NewLC();
       
    49 	CleanupStack::Pop(); // self;
       
    50 	return self;
       
    51 	}
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // 
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 void CMmAppkeyHandler::ConstructL()
       
    58 	{
       
    59 	CActiveScheduler::Add(this); // Add to scheduler
       
    60 	}
       
    61 
       
    62 // ---------------------------------------------------------------------------
       
    63 // 
       
    64 // ---------------------------------------------------------------------------
       
    65 //
       
    66 CMmAppkeyHandler::~CMmAppkeyHandler()
       
    67 	{
       
    68 	Cancel(); // Cancel any request, if outstanding
       
    69 //	 Delete instance variables if any
       
    70 	}
       
    71 
       
    72 // ---------------------------------------------------------------------------
       
    73 // 
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 void CMmAppkeyHandler::DoCancel()
       
    77 	{
       
    78 //	no implementation.
       
    79 	}
       
    80 
       
    81 // ---------------------------------------------------------------------------
       
    82 // 
       
    83 // ---------------------------------------------------------------------------
       
    84 //
       
    85 void CMmAppkeyHandler::StartL()
       
    86 	{
       
    87 	Cancel(); //just in case
       
    88 	iStatus = KRequestPending;
       
    89 	SetActive(); // Tell scheduler a request is active
       
    90 	TRequestStatus* status = &iStatus;
       
    91 	User::RequestComplete( status, KErrNone );
       
    92 	}
       
    93 
       
    94 // ---------------------------------------------------------------------------
       
    95 // 
       
    96 // ---------------------------------------------------------------------------
       
    97 //
       
    98 void CMmAppkeyHandler::RunL()
       
    99 	{
       
   100 //	do nothing
       
   101 	}
       
   102 
       
   103 // ---------------------------------------------------------------------------
       
   104 // 
       
   105 // ---------------------------------------------------------------------------
       
   106 //
       
   107 TInt CMmAppkeyHandler::RunError(TInt aError)
       
   108 	{
       
   109 	return aError;
       
   110 	}