mmserv/tms/tmsserver/inc/tmsaudiotoneutility.h
changeset 12 5a06f39ad45b
child 16 43d09473c595
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mmserv/tms/tmsserver/inc/tmsaudiotoneutility.h	Fri Apr 16 15:29:42 2010 +0300
@@ -0,0 +1,92 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description: Telephony Multimedia Service
+ *
+ */
+
+#ifndef CPEAUDIOTONEUTILITY_H
+#define CPEAUDIOTONEUTILITY_H
+
+#include <mdaaudiotoneplayer.h>
+
+namespace TMS {
+
+/**
+ *  Interface to wrap CMdaAudioToneUtility.
+ *
+ */
+class TMSAudioToneUtility
+    {
+
+public:
+    /**
+     * See CMdaAudioToneUtility::PrepareToPlayDesSequence.
+     */
+    virtual void PrepareToPlayDesSequence(const TDesC8& aSequence ) = 0;
+
+    /**
+     * See CMdaAudioToneUtility::State.
+     */
+    virtual TMdaAudioToneUtilityState State() = 0;
+
+    /**
+     * See CMdaAudioToneUtility::CancelPlay.
+     */
+    virtual void CancelPlay() = 0;
+
+    /**
+     * See CMdaAudioToneUtility::MaxVolume.
+     */
+    virtual TInt MaxVolume() = 0;
+
+    /**
+     * See CMdaAudioToneUtility::SetVolume.
+     */
+    virtual void SetVolume( TInt aVolume ) = 0;
+
+    /**
+     * See CMdaAudioToneUtility::SetRepeats.
+     */
+    virtual void SetRepeats(
+        TInt aRepeatNumberOfTimes,
+        const TTimeIntervalMicroSeconds& aTrailingSilence ) = 0;
+
+    /**
+     * See CMdaAudioToneUtility::SetPriority.
+     */
+    virtual void SetPriority(
+        TInt aPriority,
+        TMdaPriorityPreference aPref) = 0;
+
+    /**
+     * See CMdaAudioToneUtility::SetVolumeRamp.
+     */
+    virtual void SetVolumeRamp(
+        const TTimeIntervalMicroSeconds& aRampDuration) = 0;
+
+    /**
+     * See CMdaAudioToneUtility::SetVolumeRamp.
+     */
+    virtual void Play() = 0;
+
+    /**
+     * See CMdaAudioToneUtility::CancelPrepare.
+     */
+    virtual void CancelPrepare() = 0;
+
+    };
+
+} //namespace TMS
+
+#endif // CPEAUDIOTONEUTILITY_H