examples/ForumNokia/S60_3rd_Edition_TextMTM_Example/modules/UI/src/TxtViewerService.cpp

00001 
00002 
00003 #include "TxtViewerService.h"
00004 
00005 #include <E32STD.H>    // KNullUid
00006 #include <ApgCli.h>
00007 #include <eikenv.h>
00008 #include <eikappui.h>
00009 #include <AknServerApp.h>
00010 #include <barsread2.h>
00011 
00012 
00013 #define KTxtViewerServiceUid            0x10FFFFFF
00014 #define KUid                                            0xA000017F
00015 #define KMsgServiceView                         0x00000001
00016 #define KMsgServiceEdit                         0x00000002
00017 
00018 // ---------------------------------------------------------
00019 // RTxtViewerService::OpenL
00020 // ---------------------------------------------------------
00021 //
00022 void RTxtViewerService::OpenL( const TEditorParameters aParams )
00023         {
00024         
00025         TIpcArgs args;
00026         args.Set(0, aParams.iEntry);
00027         args.Set(1, aParams.iOpenedForEditing);
00028 
00029         
00030         TInt err = 
00031                 SendReceive(
00032                         RApaAppServiceBase::KServiceCmdBase, 
00033                         args );
00034         User::LeaveIfError(err);
00035         }
00036 
00037 // ---------------------------------------------------------
00038 // RTxtViewerService::ServiceUid
00039 // ---------------------------------------------------------
00040 //
00041 TUid RTxtViewerService::ServiceUid() const
00042         {
00043         return TUid::Uid( KTxtViewerServiceUid );
00044         }
00045 
00047 
00048 

Generated by  doxygen 1.6.2