#include <QtGui/qapplication.h>
#include <QtDBus/qdbusconnection.h>
#include "qdbusviewer.h"
#include <stdio.h>
Include dependency graph for main.cpp:

Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 30 of file main.cpp.
References QCoreApplication::arguments(), QStringList::contains(), QApplication::exec(), printf, QDBusConnection::sessionBus(), QWidget::show(), and QDBusConnection::systemBus().
00031 { 00032 QApplication app(argc, argv); 00033 00034 QStringList arguments = app.arguments(); 00035 if (arguments.contains("--help")) { 00036 printf("Arguments:\n"); 00037 printf(" --system Use system bus\n"); 00038 printf(" --help This help\n"); 00039 return 0; 00040 } 00041 00042 bool showSystemBus = app.arguments().contains(QLatin1String("--system")); 00043 00044 QDBusViewer viewer(showSystemBus ? QDBusConnection::systemBus() : QDBusConnection::sessionBus()); 00045 viewer.show(); 00046 00047 return app.exec(); 00048 }
Here is the call graph for this function:

1.5.1