camerauis/activepalette/Src/ActivePalette2EventData.cpp
branchRCL_3
changeset 54 bac7acad7cb3
parent 0 1ddebce53859
equal deleted inserted replaced
53:61bc0f252b2b 54:bac7acad7cb3
       
     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:  Contains an event's data*
       
    15 */
       
    16 
       
    17 
       
    18 /**
       
    19  * @file ActivePalette2EventData.cpp
       
    20  * Contains an event's data
       
    21  */
       
    22 
       
    23 
       
    24 #include <activepalette2eventdata.h>
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // TActivePaletteEventData::TActivePaletteEventData()
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 TActivePalette2EventData::TActivePalette2EventData(TInt aResult, TInt aCurItem, const TInt aPrevItem, const TInt aServingItem, const TUid& aServingPlugin):
       
    31     iResult(aResult),
       
    32     iCurItem(aCurItem),
       
    33     iPrevItem(aPrevItem),
       
    34     iServingItem(aServingItem),
       
    35     iServingPlugin(aServingPlugin)
       
    36     {
       
    37     // No implementation required
       
    38     }
       
    39 
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // TActivePaletteEventData::Result()
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 EXPORT_C TInt TActivePalette2EventData::Result(void) const
       
    46     {
       
    47 	return iResult;
       
    48     }
       
    49 
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // TActivePaletteEventData::CurItem()
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 EXPORT_C TInt TActivePalette2EventData::CurItem(void) const
       
    56     {
       
    57 	return iCurItem;
       
    58     }
       
    59 
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // TActivePaletteEventData::PrevItem()
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 EXPORT_C TInt TActivePalette2EventData::PrevItem(void) const
       
    66     {
       
    67 	return iPrevItem;
       
    68     }
       
    69 
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // TActivePaletteEventData::ServingItem()
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 EXPORT_C TInt TActivePalette2EventData::ServingItem(void) const
       
    76     {
       
    77 	return iServingItem;
       
    78     }
       
    79 
       
    80 
       
    81 // -----------------------------------------------------------------------------
       
    82 // TActivePaletteEventData::ServingPlugin()
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 EXPORT_C TUid TActivePalette2EventData::ServingPlugin(void) const
       
    86     {
       
    87 	return iServingPlugin;
       
    88     }
       
    89