Definition at line 71 of file qcoreapplication.h.
#include <qcoreapplication.h>

Public Types |
|
| enum | Encoding { CodecForTr, UnicodeUTF8, DefaultCodec = CodecForTr } |
| typedef bool(* | EventFilter )(void *message, long *result) |
Public Slots |
|
| static void | quit () |
Signals |
|
| void | aboutToQuit () |
| void | unixSignal (int) |
Public Member Functions |
|
| QCoreApplication (int &argc, char **argv) | |
| ~QCoreApplication () | |
| virtual bool | notify (QObject *, QEvent *) |
| EventFilter | setEventFilter (EventFilter filter) |
| bool | filterEvent (void *message, long *result) |
Static Public Member Functions |
|
| static QStringList | arguments () |
| static void | setAttribute (Qt::ApplicationAttribute attribute, bool on=true) |
| static bool | testAttribute (Qt::ApplicationAttribute attribute) |
| static void | setOrganizationDomain (const QString &orgDomain) |
| static QString | organizationDomain () |
| static void | setOrganizationName (const QString &orgName) |
| static QString | organizationName () |
| static void | setApplicationName (const QString &application) |
| static QString | applicationName () |
| static void | setApplicationVersion (const QString &version) |
| static QString | applicationVersion () |
| static QCoreApplication * | instance () |
| static int | exec () |
| static void | processEvents (QEventLoop::ProcessEventsFlags flags=QEventLoop::AllEvents) |
| static void | processEvents (QEventLoop::ProcessEventsFlags flags, int maxtime) |
| static void | exit (int retcode=0) |
| static bool | sendEvent (QObject *receiver, QEvent *event) |
| static void | postEvent (QObject *receiver, QEvent *event) |
| static void | postEvent (QObject *receiver, QEvent *event, int priority) |
| static void | sendPostedEvents (QObject *receiver, int event_type) |
| static void | sendPostedEvents () |
| static void | removePostedEvents (QObject *receiver) |
| static void | removePostedEvents (QObject *receiver, int eventType) |
| static bool | hasPendingEvents () |
| static bool | startingUp () |
| static bool | closingDown () |
| static QString | applicationDirPath () |
| static QString | applicationFilePath () |
| static qint64 | applicationPid () |
| static void | setLibraryPaths (const QStringList &) |
| static QStringList | libraryPaths () |
| static void | addLibraryPath (const QString &) |
| static void | removeLibraryPath (const QString &) |
| static void | installTranslator (QTranslator *messageFile) |
| static void | removeTranslator (QTranslator *messageFile) |
| static QString | translate (const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr) |
| static QString | translate (const char *context, const char *key, const char *disambiguation, Encoding encoding, int n) |
| static void | flush () |
Protected Member Functions |
|
| bool | event (QEvent *) |
| virtual bool | compressEvent (QEvent *, QObject *receiver, QPostEventList *) |
| QCoreApplication (QCoreApplicationPrivate &p) | |
Properties |
|
| QString | applicationName |
| QString | applicationVersion |
| QString | organizationName |
| QString | organizationDomain |
Friends |
|
| class | QEventDispatcherUNIXPrivate |
| class | QApplication |
| class | QApplicationPrivate |
| class | QETWidget |
| class | Q3AccelManager |
| class | QShortcutMap |
| class | QWidget |
| class | QWidgetPrivate |
| class | QClassFactory |
| bool | qt_sendSpontaneousEvent (QObject *, QEvent *) |
| Q_CORE_EXPORT QString | qAppName () |
| typedef bool(* EventFilter)(void *message, long *result) |
Definition at line 172 of file qcoreapplication.h.
| enum Encoding |
Definition at line 138 of file qcoreapplication.h.
{ CodecForTr, UnicodeUTF8, DefaultCodec = CodecForTr };
| QCoreApplication | ( | int & | argc, |
| char ** | argv | ||
| ) |
| ~QCoreApplication | ( | ) |
| QCoreApplication | ( | QCoreApplicationPrivate & | p | ) | [protected] |
| static QStringList arguments | ( | ) | [static] |
| static void setAttribute | ( | Qt::ApplicationAttribute | attribute, |
| bool | on = true |
||
| ) | [static] |
| static bool testAttribute | ( | Qt::ApplicationAttribute | attribute | ) | [static] |
| static void setOrganizationDomain | ( | const QString & | orgDomain | ) | [static] |
| static QString organizationDomain | ( | ) | [static] |
| static void setOrganizationName | ( | const QString & | orgName | ) | [static] |
| static QString organizationName | ( | ) | [static] |
| static void setApplicationName | ( | const QString & | application | ) | [static] |
| static QString applicationName | ( | ) | [static] |
| static void setApplicationVersion | ( | const QString & | version | ) | [static] |
| static QString applicationVersion | ( | ) | [static] |
| static QCoreApplication* instance | ( | ) | [inline, static] |
| static int exec | ( | ) | [static] |
Reimplemented in QApplication.
| static void processEvents | ( | QEventLoop::ProcessEventsFlags | flags =
QEventLoop::AllEvents |
) | [static] |
| static void processEvents | ( | QEventLoop::ProcessEventsFlags | flags, |
| int | maxtime | ||
| ) | [static] |
| static void exit | ( | int | retcode = 0 |
) | [static] |
Definition at line 214 of file qcoreapplication.h.
{ if (event) event->spont = false; return self ? self->notifyInternal(receiver, event) : false; }
| static void sendPostedEvents | ( | QObject * | receiver, |
| int | event_type | ||
| ) | [static] |
| void sendPostedEvents | ( | ) | [inline, static] |
Definition at line 220 of file qcoreapplication.h.
{ sendPostedEvents(0, 0); }
| static void removePostedEvents | ( | QObject * | receiver | ) | [static] |
| static void removePostedEvents | ( | QObject * | receiver, |
| int | eventType | ||
| ) | [static] |
| static bool hasPendingEvents | ( | ) | [static] |
Reimplemented in QApplication.
| static bool startingUp | ( | ) | [static] |
| static bool closingDown | ( | ) | [static] |
| static QString applicationDirPath | ( | ) | [static] |
| static QString applicationFilePath | ( | ) | [static] |
| static qint64 applicationPid | ( | ) | [static] |
| static void setLibraryPaths | ( | const QStringList & | ) | [static] |
| static QStringList libraryPaths | ( | ) | [static] |
| static void addLibraryPath | ( | const QString & | ) | [static] |
| static void removeLibraryPath | ( | const QString & | ) | [static] |
| static void installTranslator | ( | QTranslator * | messageFile | ) | [static] |
| static void removeTranslator | ( | QTranslator * | messageFile | ) | [static] |
| static void flush | ( | ) | [static] |
| EventFilter setEventFilter | ( | EventFilter | filter | ) |
| bool filterEvent | ( | void * | message, |
| long * | result | ||
| ) |
| static void quit | ( | ) | [static, slot] |
| void aboutToQuit | ( | ) | [signal] |
| void unixSignal | ( | int | ) | [signal] |
| bool event | ( | QEvent * | ) | [protected, virtual] |
Reimplemented in QApplication.
friend class QEventDispatcherUNIXPrivate
[friend] |
Definition at line 201 of file qcoreapplication.h.
friend class QApplication
[friend] |
Reimplemented from QObject.
Definition at line 202 of file qcoreapplication.h.
friend class QApplicationPrivate
[friend] |
Reimplemented from QObject.
Definition at line 203 of file qcoreapplication.h.
friend class QETWidget
[friend] |
Reimplemented in QApplication.
Definition at line 204 of file qcoreapplication.h.
friend class Q3AccelManager
[friend] |
Reimplemented in QApplication.
Definition at line 205 of file qcoreapplication.h.
friend class QShortcutMap
[friend] |
Definition at line 206 of file qcoreapplication.h.
friend class QWidget [friend] |
Reimplemented from QObject.
Reimplemented in QApplication.
Definition at line 207 of file qcoreapplication.h.
friend class QWidgetPrivate
[friend] |
Reimplemented in QApplication.
Definition at line 208 of file qcoreapplication.h.
friend class QClassFactory
[friend] |
Definition at line 211 of file qcoreapplication.h.
| Q_CORE_EXPORT QString qAppName | ( | ) | [friend] |
QString applicationName [read,
write] |
Definition at line 74 of file qcoreapplication.h.
QString applicationVersion [read,
write] |
Definition at line 75 of file qcoreapplication.h.
QString organizationName [read,
write] |
Definition at line 76 of file qcoreapplication.h.
QString organizationDomain [read,
write] |
Definition at line 77 of file qcoreapplication.h.