Namespaces
Variants
Actions

New File Service Client API

Jump to: navigation, search
Article Metadata

Code Example
Article
Created: ltomuta (16 Jun 2007)
Last edited: hamishwillee (08 May 2013)


Note.png
Note: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.

APIPurpose

The CNewFileServiceClient provides implementation for creating a new service client. Several applications are providing different services like image capture, voice recording etc.and the application UID is used to identify the application to be started as a server application.

Use cases

It can be used to embed applications such as Camcorder to be started as server application. It provides new image and new video services. Service type is given as an input parameter for service request. Service client could use generic parameters (CAiwGenericParamList) to control server application.

Example code

Headers:

#include <NewFileServiceClient.h>
#include <AiwServiceHandler.h>
#include <AiwCommon.hrh>
#include <AiwDialDataTypes.h>

Link against:

LIBRARY    ServiceHandler.lib newservice.lib
CDesCArray* selectedFiles = new (ELeave) CDesCArrayFlat(4);
CleanupStack::PushL(selectedFiles);
CAiwGenericParamList* paramList = CAiwGenericParamList::NewLC();
TAiwVariant variant( ETrue );
TAiwGenericParam param( EGenericParamMMSSizeLimit, variant );
paramList->AppendL( param );
CNewFileServiceClient* fileClient = NewFileServiceFactory::NewClientL();
CleanupStack::PushL( fileClient );
result = fileClient->NewFileL(KUidCamera,*selectedFiles,paramList,
ENewFileServiceImage,EFalse );//KUidCamera refers to Camera Uid
if(result)
{
CEikonEnv::InfoWinL(_L("Success"),_L(""));
}
else
{
CEikonEnv::InfoWinL(_L("Failed"),_L(""));
}
CleanupStack::PopAndDestroy( 3 ); // selectedFiles, paramList fileClient

Example Application

File:NewFileServ V1.zip

This page was last modified on 8 May 2013, at 03:02.
167 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved