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
Note: :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.
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.
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