examples/AppFramework/Apparc/ServerApplication/service_support/client_api.cpp

00001 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 //
00015 
00016 #include "client_api.h"
00017 #include "definitions.h"
00018 
00019 // Constructor
00020 EXPORT_C RServAppService::RServAppService()
00021 {
00022 }
00023 
00024 // Sends a request for service to the server side.
00025 // The message input parameter (contained in a descriptor)
00026 // is wrapped into a TIpcArgs type message.             
00027 EXPORT_C TInt RServAppService::Send(const TDesC & aMessage)
00028 {
00029         return SendReceive(EServAppServExample,TIpcArgs(&aMessage));
00030 }
00031 
00032 // Returns the UID of the service the client has requested
00033 TUid RServAppService::ServiceUid() const
00034 {       
00035         return KServiceType;
00036 }

Generated by  doxygen 1.6.2