equal
deleted
inserted
replaced
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> |
25 #ifdef NO101APPDEPFIXES_NEW |
26 #include <ircmtm.h> |
26 #include <app/ircmtm.h> |
|
27 #endif //NO101APPDEPFIXES_NEW |
|
28 |
27 #include <mtmuidef.hrh> |
29 #include <mtmuidef.hrh> |
28 #include <mtclreg.h> |
30 #include <mtclreg.h> |
29 #include <obexutilsuilayer.h> |
31 #include <obexutilsuilayer.h> |
30 #include <obexutils.rsg> |
32 #include <Obexutils.rsg> |
31 #include <msvuids.h> |
33 #include <msvuids.h> |
32 #include <msvids.h> |
34 #include <msvids.h> |
33 #include <obexconstants.h> |
35 #include <obexconstants.h> |
34 #include <btnotif.h> // Notifier UID's |
36 #include <btnotif.h> // Notifier UID's |
35 #include <aknnotewrappers.h> //For notifier |
37 #include <aknnotewrappers.h> //For notifier |
36 #include <featmgr.h> |
38 #include <featmgr.h> |
37 #include <SecondaryDisplay/obexutilssecondarydisplayapi.h> |
39 #include <SecondaryDisplay/obexutilssecondarydisplayapi.h> |
38 |
|
39 const TInt KIrMtmUiConnectionTimeout = 20000000; |
|
40 const TInt KIrMtmUiReceiveTimeout = 0; |
|
41 |
40 |
42 // ================= MEMBER FUNCTIONS ======================= |
41 // ================= MEMBER FUNCTIONS ======================= |
43 |
42 |
44 // C++ default constructor can NOT contain any code, that |
43 // C++ default constructor can NOT contain any code, that |
45 // might leave. |
44 // might leave. |
214 FLOG( _L( "[IRU] CIrMtmUi: EditL\t" ) ); |
213 FLOG( _L( "[IRU] CIrMtmUi: EditL\t" ) ); |
215 switch( iBaseMtm.Entry().Entry().iType.iUid ) |
214 switch( iBaseMtm.Entry().Entry().iType.iUid ) |
216 { |
215 { |
217 case KUidMsvMessageEntryValue: |
216 case KUidMsvMessageEntryValue: |
218 { |
217 { |
|
218 return LaunchEditorApplicationL( aStatus, iBaseMtm.Entry().Session() ); |
|
219 /* Infrared is not supported anymore. Implementation for sending over Infrared is left for reference: |
|
220 ( add #include <MuiuMsvProgressReporterOperation.h> to the included files ) |
|
221 ( add constants: |
|
222 const TInt KIrMtmUiConnectionTimeout = 20000000; |
|
223 const TInt KIrMtmUiReceiveTimeout = 0; ) |
|
224 code starts here: |
|
225 |
219 if( iBaseMtm.Entry().Entry().Parent() != KMsvDraftEntryId && |
226 if( iBaseMtm.Entry().Entry().Parent() != KMsvDraftEntryId && |
220 iBaseMtm.Entry().Entry().Parent() != KMsvGlobalOutBoxIndexEntryId ) |
227 iBaseMtm.Entry().Entry().Parent() != KMsvGlobalOutBoxIndexEntryId ) |
221 { |
228 { |
222 // Edit/"use" entries in the Inbox |
229 // Edit/"use" entries in the Inbox |
223 return LaunchEditorApplicationL( aStatus, iBaseMtm.Entry().Session() ); |
230 return LaunchEditorApplicationL( aStatus, iBaseMtm.Entry().Session() ); |
302 CleanupStack::Pop(reporter); |
309 CleanupStack::Pop(reporter); |
303 CleanupStack::PopAndDestroy(sel); |
310 CleanupStack::PopAndDestroy(sel); |
304 // ownership of reporter transfered to caller |
311 // ownership of reporter transfered to caller |
305 return reporter; |
312 return reporter; |
306 } |
313 } |
|
314 |
|
315 End of reference implementation for sending over Infrared: |
|
316 */ |
307 } |
317 } |
308 case KUidMsvServiceEntryValue: |
318 case KUidMsvServiceEntryValue: |
309 case KUidMsvAttachmentEntryValue: |
319 case KUidMsvAttachmentEntryValue: |
310 case KUidMsvFolderEntryValue: |
320 case KUidMsvFolderEntryValue: |
311 { |
321 { |
434 // Shows connection summary. |
444 // Shows connection summary. |
435 // --------------------------------------------------------- |
445 // --------------------------------------------------------- |
436 // |
446 // |
437 TInt CIrMtmUi::DisplayProgressSummaryL( const TDesC8& aProgress ) const |
447 TInt CIrMtmUi::DisplayProgressSummaryL( const TDesC8& aProgress ) const |
438 { |
448 { |
|
449 #ifndef NO101APPDEPFIXES_NEW |
|
450 (void) aProgress; |
|
451 #endif //NO101APPDEPFIXES_NEW |
|
452 |
|
453 #ifdef NO101APPDEPFIXES_NEW |
439 FLOG( _L( "[IRU] CIrMtmUi: DisplayProgressSummaryL\t" ) ); |
454 FLOG( _L( "[IRU] CIrMtmUi: DisplayProgressSummaryL\t" ) ); |
440 TInt resourceId; |
455 TInt resourceId; |
441 if( ( !aProgress.Length() ) || |
456 if( ( !aProgress.Length() ) || |
442 ( aProgress.Size() == sizeof( TMsvLocalOperationProgress ) ) ) |
457 ( aProgress.Size() == sizeof( TMsvLocalOperationProgress ) ) ) |
443 { |
458 { |
502 { |
517 { |
503 return KErrCancel; |
518 return KErrCancel; |
504 } |
519 } |
505 } |
520 } |
506 FLOG( _L( "[IRU] CIrMtmUi: DisplayProgressSummaryL Done\t" ) ); |
521 FLOG( _L( "[IRU] CIrMtmUi: DisplayProgressSummaryL Done\t" ) ); |
|
522 #endif //NO101APPDEPFIXES_NEW |
507 return KErrNone; |
523 return KErrNone; |
508 } |
524 } |
509 |
525 |
510 // --------------------------------------------------------- |
526 // --------------------------------------------------------- |
511 // GetProgress(...) |
527 // GetProgress(...) |
517 TInt& aTotalEntryCount, |
533 TInt& aTotalEntryCount, |
518 TInt& aEntriesDone, |
534 TInt& aEntriesDone, |
519 TInt& aCurrentEntrySize, |
535 TInt& aCurrentEntrySize, |
520 TInt& aCurrentBytesTrans ) const |
536 TInt& aCurrentBytesTrans ) const |
521 { |
537 { |
|
538 #ifndef NO101APPDEPFIXES_NEW |
|
539 (void) aProgress; |
|
540 (void) aReturnString; |
|
541 (void) aTotalEntryCount; |
|
542 (void) aEntriesDone; |
|
543 (void) aCurrentEntrySize; |
|
544 (void) aCurrentBytesTrans; |
|
545 #endif //NO101APPDEPFIXES_NEW |
|
546 |
|
547 #ifdef NO101APPDEPFIXES_NEW |
522 FLOG( _L( "[CIrMtmUi] CIrMtmUi: GetProgress\t" ) ); |
548 FLOG( _L( "[CIrMtmUi] CIrMtmUi: GetProgress\t" ) ); |
523 TPckgBuf<TObexMtmProgress> paramPack; |
549 TPckgBuf<TObexMtmProgress> paramPack; |
524 paramPack.Copy( aProgress ); |
550 paramPack.Copy( aProgress ); |
525 TObexMtmProgress& progress = paramPack(); |
551 TObexMtmProgress& progress = paramPack(); |
526 const TObexMtmProgress::TSendState progressType = progress.iSendState; |
552 const TObexMtmProgress::TSendState progressType = progress.iSendState; |
563 { |
589 { |
564 return KErrCancel; |
590 return KErrCancel; |
565 } |
591 } |
566 } |
592 } |
567 FLOG( _L( "[CBtMtmUi] CBtMtmUi: GetProgress Done\t" ) ); |
593 FLOG( _L( "[CBtMtmUi] CBtMtmUi: GetProgress Done\t" ) ); |
|
594 #endif //NO101APPDEPFIXES_NEW |
568 return KErrNone; |
595 return KErrNone; |
569 } |
596 } |
570 |
597 |
571 // --------------------------------------------------------- |
598 // --------------------------------------------------------- |
572 // LaunchEditorApplicationL(...) |
599 // LaunchEditorApplicationL(...) |