17 |
17 |
18 #ifndef BTMSGVIEWERUTILS_H_ |
18 #ifndef BTMSGVIEWERUTILS_H_ |
19 #define BTMSGVIEWERUTILS_H_ |
19 #define BTMSGVIEWERUTILS_H_ |
20 |
20 |
21 #include <msvapi.h> |
21 #include <msvapi.h> |
|
22 #include <bluetoothdevicedialogs.h> |
|
23 #include <hbdevicedialogsymbian.h> |
22 |
24 |
23 |
25 |
24 class CBtMsgViewerUtils: public CBase, public MMsvSessionObserver |
26 class CBtMsgViewerUtils: public CBase, public MMsvSessionObserver |
25 { |
27 { |
26 public: |
28 public: |
27 static CBtMsgViewerUtils* NewL(); |
29 static CBtMsgViewerUtils* NewL(); |
28 ~CBtMsgViewerUtils(); |
30 ~CBtMsgViewerUtils(); |
29 HBufC* GetMessagePath(TInt aMessageId, TInt aError); |
31 HBufC* GetMessagePath(TInt aMessageId, TInt& aError); |
30 HBufC8* GetMimeType(); |
32 HBufC8* GetMimeType(); |
31 |
33 |
32 private: // From MMsvSessionObserver |
34 private: // From MMsvSessionObserver |
33 void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3); |
35 void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3); |
34 |
36 |
35 private: |
37 private: |
36 void GetMessagePathL(TPtr aMsgPath, const TInt aMessageId); |
38 void GetMessagePathL(TPtr aMsgPath, const TInt aMessageId); |
37 void StoreMessageMimeTypeL(TPtr aMsgPath); |
39 void StoreMessageMimeTypeL(TPtr aMsgPath); |
|
40 void LaunchFailureDialogL(TInt aDialogTitle); |
38 |
41 |
39 private: |
42 private: |
40 CBtMsgViewerUtils(); |
43 CBtMsgViewerUtils(); |
41 void ConstructL(); |
44 void ConstructL(); |
42 |
45 |