AlarmNotifications
PANDA Slow Control Alarm Daemon
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
main_desktopwidget-kde4.cpp
Go to the documentation of this file.
1 
34 #include <QApplication>
35 
36 #include "desktopalarmwidgetkde4.h"
37 #include "x11compat.h"
38 
39 using namespace AlarmNotifications;
40 
41 int main ( int argc, char** argv )
42 {
43 #ifdef BEEDO
44  Q_INIT_RESOURCE (beedo); // Force loading the video resource from static library alarmwatcherbeedoresource
45 #endif
46  InitializeXThreads(); // Make sure X can deal with this multi-threaded client
47  QApplication app ( argc, argv );
48  app.setApplicationName ( QString::fromUtf8 ( "AlarmNotifications desktop widget" ) );
49  app.setApplicationVersion ( QString::fromUtf8 ( "1.0.0" ) );
50  app.setQuitOnLastWindowClosed ( false );
52  app.exec();
53  return 0;
54 }
Desktop widget featuring an item in the KDE4 notification area.
Implementation if DesktopAlarmWidget for KStatusNotifierItem (KDE4 Plasma Workspaces) ...
Namespace for Alarm Notifications application.
int main(int argc, char **argv)
Compability wrapper for the X11 API.
void InitializeXThreads()
Call XInitThreads() from Xlib.
Definition: x11compat.cpp:45