menucontentsrv/src/menusapi.cpp
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     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 *
       
    16 */
       
    17 
       
    18 #include "mcsmenusapi.h"
       
    19 #include "menumsg.h"
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 // ---------------------------------------------------------
       
    27 // RMenu::GetListL
       
    28 // ---------------------------------------------------------
       
    29 //
       
    30 EXPORT_C void RMenuSapi::GetListL( TDes8& aSerializedIn,
       
    31 		RBuf8& aSerializedOut )
       
    32 	{
       
    33     TInt sizeList(0);
       
    34     TPckg<TInt> sizeDes(sizeList);
       
    35     TIpcArgs args1( &aSerializedIn, &sizeDes );
       
    36     User::LeaveIfError( SendReceive( EMenuGetListSize, args1 ) );
       
    37     aSerializedOut.CreateL( sizeList );
       
    38     TIpcArgs args2( &aSerializedOut );
       
    39     User::LeaveIfError( SendReceive( EMenuGetListData, args2 ) );
       
    40 	}