equal
deleted
inserted
replaced
16 * The source file of service utils private for win32 wrapper |
16 * The source file of service utils private for win32 wrapper |
17 */ |
17 */ |
18 |
18 |
19 #include "fmserviceutilsprivate.h" |
19 #include "fmserviceutilsprivate.h" |
20 |
20 |
|
21 // CONSTANTS |
|
22 const int KAppCloseMiniSecTimeout = 1000; |
|
23 |
21 /*! |
24 /*! |
22 constructor |
25 constructor |
23 */ |
26 */ |
24 FmServiceUtilsPrivate::FmServiceUtilsPrivate() |
27 FmServiceUtilsPrivate::FmServiceUtilsPrivate( QObject *parent ) : QObject( parent ) |
25 { |
28 { |
|
29 connect(&mCloseAppTimer, SIGNAL(timeout()), this, SLOT(onCloseAppTimeup())); |
26 } |
30 } |
27 |
31 |
28 /*! |
32 /*! |
29 destructor |
33 destructor |
30 */ |
34 */ |
43 /*! |
47 /*! |
44 dummy function for win32 build |
48 dummy function for win32 build |
45 */ |
49 */ |
46 void FmServiceUtilsPrivate::closeApps() |
50 void FmServiceUtilsPrivate::closeApps() |
47 { |
51 { |
48 |
52 mCloseAppTimer.start( KAppCloseMiniSecTimeout ); |
|
53 mCloseAppLoop.exec(); |
49 } |
54 } |
50 |
55 |
51 /*! |
56 /*! |
52 dummy function for win32 build |
57 dummy function for win32 build |
53 */ |
58 */ |
54 void FmServiceUtilsPrivate::restartApps() |
59 void FmServiceUtilsPrivate::restartApps() |
55 { |
60 { |
56 |
61 |
|
62 } |
|
63 |
|
64 void FmServiceUtilsPrivate::onCloseAppTimeup() |
|
65 { |
|
66 mCloseAppLoop.exit(); |
57 } |
67 } |
58 |
68 |
59 /*! |
69 /*! |
60 dummy function for win32 build |
70 dummy function for win32 build |
61 */ |
71 */ |