Changeset View
Changeset View
Standalone View
Standalone View
src/platforms/xcb/kxmessages.h
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 54 | public: | |||
---|---|---|---|---|---|
77 | ~KXMessages() override; | 77 | ~KXMessages() override; | ||
78 | /** | 78 | /** | ||
79 | * Broadcasts the given message with the given message type. | 79 | * Broadcasts the given message with the given message type. | ||
80 | * @param msg_type the type of the message | 80 | * @param msg_type the type of the message | ||
81 | * @param message the message itself | 81 | * @param message the message itself | ||
82 | * @param screen X11 screen to use, -1 for the default | 82 | * @param screen X11 screen to use, -1 for the default | ||
83 | */ | 83 | */ | ||
84 | void broadcastMessage(const char *msg_type, const QString &message, int screen = -1); | 84 | void broadcastMessage(const char *msg_type, const QString &message, int screen = -1); | ||
85 | // Not 5.0, as KStartupInfo::sendStartupX uses this, and is only deprecated for 5.18 | ||||
86 | #if KWINDOWSYSTEM_ENABLE_DEPRECATED_SINCE(5, 18) | ||||
85 | /** | 87 | /** | ||
86 | * Broadcasts the given message with the given message type. | 88 | * Broadcasts the given message with the given message type. | ||
87 | * | 89 | * | ||
88 | * @param disp X11 connection which will be used instead of | 90 | * @param disp X11 connection which will be used instead of | ||
89 | * QX11Info::display() | 91 | * QX11Info::display() | ||
90 | * @param msg_type the type of the message | 92 | * @param msg_type the type of the message | ||
91 | * @param message the message itself | 93 | * @param message the message itself | ||
92 | * @param screen X11 screen to use, -1 for the default | 94 | * @param screen X11 screen to use, -1 for the default | ||
93 | * @return false when an error occurred, true otherwise | 95 | * @return false when an error occurred, true otherwise | ||
94 | * @deprecated since 5.0 use xcb variant | 96 | * @deprecated since 5.0 use xcb variant | ||
95 | */ | 97 | */ | ||
96 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | 98 | KWINDOWSYSTEM_DEPRECATED_VERSION(5, 0, "Use KXMessages::broadcastMessageX(xcb_connection_t *, const char *, const QString &, int)") | ||
97 | KWINDOWSYSTEM_DEPRECATED static bool broadcastMessageX(Display *disp, const char *msg_type, | 99 | static bool broadcastMessageX(Display *disp, const char *msg_type, | ||
98 | const QString &message, int screen = -1); | 100 | const QString &message, int screen = -1); | ||
99 | #endif | 101 | #endif | ||
100 | /** | 102 | /** | ||
101 | * Broadcasts the given message with the given message type. | 103 | * Broadcasts the given message with the given message type. | ||
102 | * | 104 | * | ||
103 | * @param c X11 connection which will be used instead of | 105 | * @param c X11 connection which will be used instead of | ||
104 | * QX11Info::connection() | 106 | * QX11Info::connection() | ||
105 | * @param msg_type the type of the message | 107 | * @param msg_type the type of the message | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |