Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 13:41, 24 June 2008.

New File Service Client API

From Forum Nokia Wiki

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

SampleApplication

Related Discussions
Thread Thread Starter Forum Replies Last Post
How to dial out using VOIP livylau VoIP 8 2007-11-30 14:23
Bluetooth device search ogucbey Bluetooth Technology 4 2005-01-06 16:41
New message notification API lenclud General Symbian C++ 9 2008-06-04 14:40
javax.bluetooth; no service found sandrosandrosa Bluetooth Technology 2 2004-08-20 12:33
Bluetooth Service Discovery Problem maverick2k Mobile Java General 3 2007-12-17 12:08
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX