License and Privilege changes
[apps/osp/Call.git] / src / CallSoundManager.cpp
index 44f9603..d9b939e 100644 (file)
@@ -1,7 +1,7 @@
 //
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
-// Licensed under the Flora License, Version 1.0 (the License);
+// Licensed under the Flora License, Version 1.1 (the License);
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
@@ -534,6 +534,9 @@ void
 SoundManager::StartAlert(String& contactRingTone)
 {
        result res = E_FAILURE;
+       IntensityDurationVibrationPattern vibration;
+       vibration.duration = 3000;
+       vibration.intensity = -1;
        AppLogDebug("Enter");
        if(__pSoundCallSession != null)
        {
@@ -626,7 +629,7 @@ SoundManager::StartAlert(String& contactRingTone)
        if (__isVibrateStatusOn == true)
        {
                //todo: Get the level from settings
-               res = __pVibrator->Start(3000,1000,1000);
+               __pVibrator->Start(&vibration, 1, 1000);
        }
        AppLogDebug("Exit");
        return;