New File Service Client API
Article Metadata
Code Example
Source file: Media:NewFileServ V1.zip
Article
Created: ltomuta
(16 Jun 2007)
Last edited: hamishwillee
(08 May 2013)
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


29 Sep
2009
New File Service Client API are useful for creating a new service client. The application that is started as file server client is identified by application UID. This article demonstrates the use of New File Service Client API to use camera service client. Note that this API, New File Service Client API, is not part of the public SDK. So you have to download it from SDK API Plug-in before using it. Furthermore, the author added a working demo project, which can be used for more detailed study of new opportunities for various kinds of experiments.
Knobtviker - Working on S^3
I must add that this also works on Symbian^3 phones. One can pass maximum resolution to Camera in paramList but not resolution alone.
Additional parameter like the one given above in example must be passed along too.knobtviker 15:46, 4 February 2012 (EET)