Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

New File Service Client API

From Wiki
Jump to: navigation, search
Article Metadata
Code ExampleArticle
Created: ltomuta (16 Jun 2007)
Last edited: hamishwillee (30 May 2013)

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


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


#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);
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
CleanupStack::PopAndDestroy( 3 ); // selectedFiles, paramList fileClient

Example Application


This page was last modified on 30 May 2013, at 04:35.
43 page views in the last 30 days.