Here is the second patch.
*** /qutecom-2-2-0c9ef25e8554/wengophone/src/presentation/qt/CMakeLists.txt
--- /workspace/qutecom/wengophone/src/presentation/qt/CMakeLists.txt
***************
*** 505,510 ****
--- 505,517 ----
message(STATUS "Sms deactivated")
endif (DISABLE_SMS)
+ if (SET_PRIORITY_ABOVE_NORMAL)
+ ow_add_private_definitions(
+ -DSET_PRIORITY_ABOVE_NORMAL
+ )
+ message(STATUS "Set priority to above normal")
+ endif (SET_PRIORITY_ABOVE_NORMAL)
+
if (DISABLE_VOICE_MAIL)
ow_add_private_definitions(
-DDISABLE_VOICE_MAIL
*** /qutecom-2-2-0c9ef25e8554/DefineWengoOptions.cmake
--- /workspace/qutecom/DefineWengoOptions.cmake
***************
*** 51,56 ****
--- 51,58 ----
option(DISABLE_VOICE_MAIL "Disable voice mail by http support" OFF)
+ option(SET_PRIORITY_ABOVE_NORMAL "Set the WengoPhone Priority to
ABOVE_NORMAL_PRIORITY_CLASS" OFF)
+
if (WIN32)
option(ENABLE_CONSOLE "Force generate of executable with Console Window
enabled" ON)
option(FFMPEG_OLD_VERSION "Use the old version of ffmpeg" OFF)
*** /qutecom-2-2-0c9ef25e8554/wengophone/src/presentation/main.cpp
--- /workspace/qutecom/wengophone/src/presentation/main.cpp
***************
*** 17,22 ****
--- 17,24 ----
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+ #include <windows.h>
+
#include <system/Processes.h>
#include <model/WengoPhone.h>
***************
*** 94,99 ****
--- 95,102 ----
#include <buildconfig.h>
+ #include <crtdbg.h>
+
#if defined(OS_LINUX)
#include <X11/Xlib.h>
#endif
***************
*** 229,234 ****
--- 233,242 ----
//Init presentation factories before parsing the command line so that
Qt or
//Gtk get a chance to parse their command line options ('-style' for Qt
for
//example)
+ #ifdef SET_PRIORITY_ABOVE_NORMAL
+ SetPriorityClass ( GetCurrentProcess(),
ABOVE_NORMAL_PRIORITY_CLASS );
+ #endif
+
PFactory * pFactory = NULL;
#if defined(OS_LINUX)
XInitThreads();
_______________________________________________
QuteCom-dev mailing list
[email protected]
http://lists.qutecom.org/mailman/listinfo/qutecom-dev