×
Namespaces

Variants
Actions

New File Service Client API

From Nokia Developer 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.

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 30 May 2013, at 07:35.
64 page views in the last 30 days.