mmserv/sts/sts/inc/stsplayer.h
changeset 31 8dfd592727cb
parent 22 128eb6a32b84
child 33 5e8b14bae8c3
--- a/mmserv/sts/sts/inc/stsplayer.h	Thu May 27 13:20:50 2010 +0300
+++ b/mmserv/sts/sts/inc/stsplayer.h	Wed Jun 23 18:47:10 2010 +0300
@@ -21,6 +21,9 @@
 #include <mdaaudiosampleplayer.h>
 #include <systemtoneservice.h>
 
+class MProEngEngine;
+class MProEngProfile;
+
 class MStsPlayerObserver
     {
 public:
@@ -30,6 +33,7 @@
 class CStsPlayer : private MMdaAudioPlayerCallback
     {
 public:
+
     static CStsPlayer* CreateTonePlayer(MStsPlayerObserver& aObserver,
             CSystemToneService::TToneType aTone, unsigned int aContext);
     static CStsPlayer* CreateAlarmPlayer(MStsPlayerObserver& aObserver,
@@ -38,9 +42,14 @@
     void Play();
     void Stop();
 
+
 protected:
+    
+    void LoadActiveProfileSettingsL();
+    void SetToneSettings(CSystemToneService::TToneType aTone);
+    void SetAlarmSettings(CSystemToneService::TAlarmType aAlarm);
     CStsPlayer(MStsPlayerObserver& aObserver, const TDesC& aFileName,
-            int aRepeatNumberOfTimes, unsigned int aContext);
+    int aRepeatNumberOfTimes, unsigned int aContext);
     bool Init();
 
 private:
@@ -53,6 +62,15 @@
     TPtrC iFileName;
     int iRepeatNumberOfTimes;
     unsigned int iContext;
+
+    MProEngEngine* iEngine;
+    MProEngProfile* iProfile;
+
+    TInt iVolume;
+    TBool iWarningToneEnabled;
+    TUint iAudioPreference;
+    TUint iAudioPriority;
+
     };
 
 #endif // STSPLAYER_H_