\section{KXMessages Class Reference}
\label{classKXMessages}\index{KXMessages@{KXMessages}}
Sending string messages to other applications using the X Client Messages.  


{\tt \#include $<$kxmessages.h$>$}

Inheritance diagram for KXMessages:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKXMessages__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KXMessages:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=191pt]{classKXMessages__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf got\-Message} (const {\bf QString} \&message)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KXMessages} (const char $\ast$accept\_\-broadcast, {\bf QWidget} $\ast$parent, bool obsolete)
\item 
{\bf KXMessages} (const char $\ast$accept\_\-broadcast=NULL, {\bf QWidget} $\ast$parent=NULL)
\item 
void {\bf send\-Message} (WId w, const char $\ast$msg\_\-type, const {\bf QString} \&message, bool obsolete)
\item 
void {\bf send\-Message} (WId w, const char $\ast$msg\_\-type, const {\bf QString} \&message)
\item 
void {\bf broadcast\-Message} (const char $\ast$msg\_\-type, const {\bf QString} \&message, int screen, bool obsolete)
\item 
void {\bf broadcast\-Message} (const char $\ast$msg\_\-type, const {\bf QString} \&message)
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static bool {\bf send\-Message\-X} (Display $\ast$disp, WId w, const char $\ast$msg\_\-type, const {\bf QString} \&message, bool obsolete)
\item 
static bool {\bf send\-Message\-X} (Display $\ast$disp, WId w, const char $\ast$msg\_\-type, const {\bf QString} \&message)
\item 
static bool {\bf broadcast\-Message\-X} (Display $\ast$disp, const char $\ast$msg\_\-type, const {\bf QString} \&message, int screen, bool obsolete)
\item 
static bool {\bf broadcast\-Message\-X} (Display $\ast$disp, const char $\ast$msg\_\-type, const {\bf QString} \&message)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual bool {\bf x11Event} (XEvent $\ast$ev)\label{classKXMessages_b0}

\end{CompactItemize}


\subsection{Detailed Description}
Sending string messages to other applications using the X Client Messages. 

Used internally by {\bf KStartup\-Info}{\rm (p.\,\pageref{classKStartupInfo})}. You usually don't want to use this, use DCOP instead.

\begin{Desc}
\item[Author:]Lubos Lunak $<${\tt l.lunak@kde.org}$>$ \end{Desc}




Definition at line 47 of file kxmessages.h.

\subsection{Constructor \& Destructor Documentation}
\index{KXMessages@{KXMessages}!KXMessages@{KXMessages}}
\index{KXMessages@{KXMessages}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KXMessages::KXMessages (const char $\ast$ {\em accept\_\-broadcast}, {\bf QWidget} $\ast$ {\em parent}, bool {\em obsolete})}\label{classKXMessages_a0}


Creates an instance which will receive X messages. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em accept\_\-broadcast}]if non-NULL, all broadcast messages with this message type will be received. \item[{\em parent}]the parent of this widget \item[{\em obsolete}]always set to false (needed for backwards compatibility with KDE3.1 and older)\end{description}
\end{Desc}


Definition at line 57 of file kxmessages.cpp.

References QWidget::QWidget().\index{KXMessages@{KXMessages}!KXMessages@{KXMessages}}
\index{KXMessages@{KXMessages}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KXMessages::KXMessages (const char $\ast$ {\em accept\_\-broadcast} = {\tt NULL}, {\bf QWidget} $\ast$ {\em parent} = {\tt NULL})}\label{classKXMessages_a1}


\begin{Desc}
\item[{\bf Deprecated}]This method is equivalent to the other constructor with obsolete = true. \end{Desc}


Definition at line 40 of file kxmessages.cpp.

References QWidget::QWidget().

\subsection{Member Function Documentation}
\index{KXMessages@{KXMessages}!sendMessage@{sendMessage}}
\index{sendMessage@{sendMessage}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KXMessages::send\-Message (WId {\em w}, const char $\ast$ {\em msg\_\-type}, const {\bf QString} \& {\em message}, bool {\em obsolete})}\label{classKXMessages_a3}


Sends the given message with the given message type only to given window. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em w}]X11 handle for the destination window \item[{\em msg\_\-type}]the type of the message \item[{\em message}]the message itself \item[{\em obsolete}]always set to false (needed for backwards compatibility with KDE3.1 and older)\end{description}
\end{Desc}


Definition at line 101 of file kxmessages.cpp.

References QWidget::win\-Id().

Referenced by send\-Message().\index{KXMessages@{KXMessages}!sendMessage@{sendMessage}}
\index{sendMessage@{sendMessage}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KXMessages::send\-Message (WId {\em w}, const char $\ast$ {\em msg\_\-type}, const {\bf QString} \& {\em message})}\label{classKXMessages_a4}


\begin{Desc}
\item[{\bf Deprecated}]This method is equivalent to {\bf send\-Message()}{\rm (p.\,\pageref{classKXMessages_a3})} with obsolete = true. \end{Desc}


Definition at line 96 of file kxmessages.cpp.

References send\-Message().\index{KXMessages@{KXMessages}!broadcastMessage@{broadcastMessage}}
\index{broadcastMessage@{broadcastMessage}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KXMessages::broadcast\-Message (const char $\ast$ {\em msg\_\-type}, const {\bf QString} \& {\em message}, int {\em screen}, bool {\em obsolete})}\label{classKXMessages_a5}


Broadcasts the given message with the given message type. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em msg\_\-type}]the type of the message \item[{\em message}]the message itself \item[{\em screen}]X11 screen to use, -1 for the default \item[{\em obsolete}]always set to false (needed for backwards compatibility with KDE3.1 and older)\end{description}
\end{Desc}


Definition at line 86 of file kxmessages.cpp.

References QWidget::win\-Id().

Referenced by broadcast\-Message(), KStartup\-Info::send\-Change(), KStartup\-Info::send\-Finish(), and KStartup\-Info::send\-Startup().\index{KXMessages@{KXMessages}!broadcastMessage@{broadcastMessage}}
\index{broadcastMessage@{broadcastMessage}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KXMessages::broadcast\-Message (const char $\ast$ {\em msg\_\-type}, const {\bf QString} \& {\em message})}\label{classKXMessages_a6}


\begin{Desc}
\item[{\bf Deprecated}]This method is equivalent to {\bf broadcast\-Message()}{\rm (p.\,\pageref{classKXMessages_a5})} with obsolete = true. \end{Desc}


Definition at line 81 of file kxmessages.cpp.

References broadcast\-Message().\index{KXMessages@{KXMessages}!sendMessageX@{sendMessageX}}
\index{sendMessageX@{sendMessageX}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KXMessages::send\-Message\-X (Display $\ast$ {\em disp}, WId {\em w}, const char $\ast$ {\em msg\_\-type}, const {\bf QString} \& {\em message}, bool {\em obsolete})\hspace{0.3cm}{\tt  [static]}}\label{classKXMessages_e0}


Sends the given message with the given message type only to given window. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em disp}]X11 connection which will be used instead of qt\_\-x11display() \item[{\em w}]X11 handle for the destination window \item[{\em msg\_\-type}]the type of the message \item[{\em message}]the message itself \item[{\em obsolete}]always set to false (needed for backwards compatibility with KDE3.1 and older) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]false when an error occurred, true otherwise\end{Desc}


Definition at line 138 of file kxmessages.cpp.

Referenced by send\-Message\-X().\index{KXMessages@{KXMessages}!sendMessageX@{sendMessageX}}
\index{sendMessageX@{sendMessageX}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KXMessages::send\-Message\-X (Display $\ast$ {\em disp}, WId {\em w}, const char $\ast$ {\em msg\_\-type}, const {\bf QString} \& {\em message})\hspace{0.3cm}{\tt  [static]}}\label{classKXMessages_e1}


\begin{Desc}
\item[{\bf Deprecated}]This method is equivalent to {\bf send\-Message\-X()}{\rm (p.\,\pageref{classKXMessages_e0})} with obsolete = true. \end{Desc}


Definition at line 132 of file kxmessages.cpp.

References send\-Message\-X().\index{KXMessages@{KXMessages}!broadcastMessageX@{broadcastMessageX}}
\index{broadcastMessageX@{broadcastMessageX}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KXMessages::broadcast\-Message\-X (Display $\ast$ {\em disp}, const char $\ast$ {\em msg\_\-type}, const {\bf QString} \& {\em message}, int {\em screen}, bool {\em obsolete})\hspace{0.3cm}{\tt  [static]}}\label{classKXMessages_e2}


Broadcasts the given message with the given message type. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em disp}]X11 connection which will be used instead of qt\_\-x11display() \item[{\em msg\_\-type}]the type of the message \item[{\em message}]the message itself \item[{\em screen}]X11 screen to use, -1 for the default \item[{\em obsolete}]always set to false (needed for backwards compatibility with KDE3.1 and older) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]false when an error occurred, true otherwise\end{Desc}


Definition at line 115 of file kxmessages.cpp.

Referenced by broadcast\-Message\-X(), KStartup\-Info::send\-Change\-X(), KStartup\-Info::send\-Finish\-X(), and KStartup\-Info::send\-Startup\-X().\index{KXMessages@{KXMessages}!broadcastMessageX@{broadcastMessageX}}
\index{broadcastMessageX@{broadcastMessageX}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KXMessages::broadcast\-Message\-X (Display $\ast$ {\em disp}, const char $\ast$ {\em msg\_\-type}, const {\bf QString} \& {\em message})\hspace{0.3cm}{\tt  [static]}}\label{classKXMessages_e3}


\begin{Desc}
\item[{\bf Deprecated}]This method is equivalent to {\bf broadcast\-Message\-X()}{\rm (p.\,\pageref{classKXMessages_e2})} with obsolete = true. \end{Desc}


Definition at line 109 of file kxmessages.cpp.

References broadcast\-Message\-X().\index{KXMessages@{KXMessages}!gotMessage@{gotMessage}}
\index{gotMessage@{gotMessage}!KXMessages@{KXMessages}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KXMessages::got\-Message (const {\bf QString} \& {\em message})\hspace{0.3cm}{\tt  [signal]}}\label{classKXMessages_l0}


Emitted when a message was received. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em message}]the message that has been received\end{description}
\end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kxmessages.h\item 
kxmessages.cpp\end{CompactItemize}
