localconnectivityservice/obexreceiveservices/mtmuiinfrared/src/irmtmui.cpp
changeset 25 c4f07256ff37
parent 0 c3e98f10fcf4
child 26 d74a43a4aa59
equal deleted inserted replaced
0:c3e98f10fcf4 25:c4f07256ff37
    20 
    20 
    21 // INCLUDE FILES
    21 // INCLUDE FILES
    22 #include "irmtmui.h"
    22 #include "irmtmui.h"
    23 #include "debug.h"
    23 #include "debug.h"
    24 
    24 
    25 #include <MuiuMsvProgressReporterOperation.h>
       
    26 #include <ircmtm.h>
    25 #include <ircmtm.h>
    27 #include <mtmuidef.hrh>
    26 #include <mtmuidef.hrh>
    28 #include <mtclreg.h>
    27 #include <mtclreg.h>
    29 #include <obexutilsuilayer.h>
    28 #include <obexutilsuilayer.h>
    30 #include <obexutils.rsg>
    29 #include <obexutils.rsg>
    34 #include <btnotif.h>        	// Notifier UID's
    33 #include <btnotif.h>        	// Notifier UID's
    35 #include <aknnotewrappers.h> 	//For notifier
    34 #include <aknnotewrappers.h> 	//For notifier
    36 #include <featmgr.h>
    35 #include <featmgr.h>
    37 #include <SecondaryDisplay/obexutilssecondarydisplayapi.h>
    36 #include <SecondaryDisplay/obexutilssecondarydisplayapi.h>
    38 
    37 
    39 const TInt KIrMtmUiConnectionTimeout     = 20000000;
       
    40 const TInt KIrMtmUiReceiveTimeout        = 0;
       
    41 
       
    42 // ================= MEMBER FUNCTIONS =======================
    38 // ================= MEMBER FUNCTIONS =======================
    43 
    39 
    44 // C++ default constructor can NOT contain any code, that
    40 // C++ default constructor can NOT contain any code, that
    45 // might leave.
    41 // might leave.
    46 //
    42 //
   214     FLOG( _L( "[IRU] CIrMtmUi: EditL\t" ) );
   210     FLOG( _L( "[IRU] CIrMtmUi: EditL\t" ) );
   215     switch( iBaseMtm.Entry().Entry().iType.iUid )
   211     switch( iBaseMtm.Entry().Entry().iType.iUid )
   216         {
   212         {
   217         case KUidMsvMessageEntryValue:
   213         case KUidMsvMessageEntryValue:
   218             {
   214             {
       
   215             return LaunchEditorApplicationL( aStatus, iBaseMtm.Entry().Session() );
       
   216             /* Infrared is not supported anymore. Implementation for sending over Infrared is left for reference:
       
   217             ( add #include <MuiuMsvProgressReporterOperation.h> to the included files )
       
   218             ( add constants:
       
   219                 const TInt KIrMtmUiConnectionTimeout     = 20000000;
       
   220                 const TInt KIrMtmUiReceiveTimeout        = 0; )
       
   221             code starts here:
       
   222 
   219             if( iBaseMtm.Entry().Entry().Parent() != KMsvDraftEntryId &&
   223             if( iBaseMtm.Entry().Entry().Parent() != KMsvDraftEntryId &&
   220                iBaseMtm.Entry().Entry().Parent() != KMsvGlobalOutBoxIndexEntryId )
   224                iBaseMtm.Entry().Entry().Parent() != KMsvGlobalOutBoxIndexEntryId )
   221                 {
   225                 {
   222                 //   Edit/"use" entries in the Inbox
   226                 //   Edit/"use" entries in the Inbox
   223                 return LaunchEditorApplicationL( aStatus, iBaseMtm.Entry().Session() );
   227                 return LaunchEditorApplicationL( aStatus, iBaseMtm.Entry().Session() );
   302                 CleanupStack::Pop(reporter);
   306                 CleanupStack::Pop(reporter);
   303                 CleanupStack::PopAndDestroy(sel);
   307                 CleanupStack::PopAndDestroy(sel);
   304                 // ownership of reporter transfered to caller
   308                 // ownership of reporter transfered to caller
   305                 return reporter; 
   309                 return reporter; 
   306                 }
   310                 }
       
   311 
       
   312                 End of reference implementation for sending over Infrared:
       
   313                 */
   307             }
   314             }
   308         case KUidMsvServiceEntryValue:
   315         case KUidMsvServiceEntryValue:
   309         case KUidMsvAttachmentEntryValue:
   316         case KUidMsvAttachmentEntryValue:
   310         case KUidMsvFolderEntryValue:
   317         case KUidMsvFolderEntryValue:
   311             {
   318             {