GammaRay API Documentation
2.8.1
|
Pre-MainWindow connection setup logic. More...
#include <clientconnectionmanager.h>
Public Slots | |
QMainWindow * | createMainWindow () |
void | disconnectFromHost () |
void | handlePersistentConnectionError (const QString &msg) |
Signals | |
void | disconnected () |
void | persistentConnectionError (const QString &msg) |
void | processTrackerBackendChanged (GammaRay::ProcessTrackerBackend *backend) |
void | processTrackerInfoChanged (const GammaRay::ProcessTrackerInfo &info) |
void | ready () |
Public Member Functions | |
ClientConnectionManager (QObject *parent=nullptr, bool showSplashScreenOnStartUp=true) | |
void | connectToHost (const QUrl &url, int tryAgain=0) |
QString | endPointKey () const |
QString | endPointLabel () const |
qint64 | endPointPid () const |
QMainWindow * | mainWindow () const |
GammaRay::ProcessTrackerBackend * | processTrackerBackend () const |
qint64 | processTrackerPid () const |
void | setProcessTrackerBackend (GammaRay::ProcessTrackerBackend *backend) |
void | setProcessTrackerPid (qint64 pid) |
void | showSplashScreen () |
![]() | |
QObject (QObject *parent) | |
bool | blockSignals (bool block) |
const QObjectList & | children () const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const |
bool | disconnect (const QObject *receiver, const char *method) const |
void | dumpObjectInfo () |
void | dumpObjectInfo () const |
void | dumpObjectTree () |
void | dumpObjectTree () const |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const |
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const |
bool | inherits (const char *className) const |
void | installEventFilter (QObject *filterObj) |
bool | isWidgetType () const |
bool | isWindowType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
int | startTimer (int interval, Qt::TimerType timerType) |
QThread * | thread () const |
Static Public Member Functions | |
static void | init () |
![]() | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Additional Inherited Members | |
![]() | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
![]() | |
objectName | |
Pre-MainWindow connection setup logic.
This is useful for embedding the GammaRay client into another application
void GammaRay::ClientConnectionManager::connectToHost | ( | const QUrl & | url, |
int | tryAgain = 0 |
||
) |
Connect to a GammaRay probe at url
.
|
slot |
Brings up a client main window for the current connection. If you want to use this, connect this slot to ready().
|
signal |
Emitted when the connection to the target has been closed, for whatever reason. For a stand-alone client you probably want to connect this to QApplication::quit().
|
slot |
Disconnect GammaRay.
|
slot |
Standard persistent connection error handler.
|
static |
One-time initialization of stream operators and factory callbacks.
|
signal |
Emitted when there has been a persistent connection error. You can connect this to handlePersistentConnectionError() for a standard message box and application exit handling.
|
signal |
Emitted when the connection is established and the tool model is populated. If you want to bring up the standard main window, connect this to createMainWindow(), otherwise use this to show your own UI at this point.
void GammaRay::ClientConnectionManager::showSplashScreen | ( | ) |
Manually show the splash screen.