\section{KIPC Class Reference}
\label{classKIPC}\index{KIPC@{KIPC}}
This class implements a very simple IPC mechanism for {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})}.  


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

\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Message} \{ \par
{\bf Palette\-Changed} = 0, 
{\bf Font\-Changed}, 
{\bf Style\-Changed}, 
{\bf Background\-Changed}, 
\par
{\bf Settings\-Changed}, 
{\bf Icon\-Changed}, 
{\bf Toolbar\-Style\-Changed}, 
{\bf Clipboard\-Config\-Changed}, 
\par
{\bf User\-Message} = 32
 \}
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static void {\bf send\-Message} ({\bf Message} msg, WId w, int data=0)
\item 
static void {\bf send\-Message\-All} ({\bf Message} msg, int data=0)
\end{CompactItemize}


\subsection{Detailed Description}
This class implements a very simple IPC mechanism for {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})}. 

You can send a message of a predefined type to either a specific application, or to all {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} application on the current display. The message can carry one integer of data.

KIPC is mainly used in {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} for sending \char`\"{}Change Messages\char`\"{}, i.e. a message to all {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} apps that a certain setting (the font, for example) has changed. For anything more complex it is recommended to use DCOP -- the Desktop Communications Protocol.

Messages with id code $<$ 32 are called \char`\"{}System Messages\char`\"{}. These are directly handled by {\bf KApplication}{\rm (p.\,\pageref{classKApplication})}. Examples are: Palette\-Changed and Style\-Changed. Messages with id code $>$= 32 are user messages. {\bf KApplication}{\rm (p.\,\pageref{classKApplication})} emits the signal kipc\-Message(id,arg) for each user message it receives.

KIPC is implemented using X11 Client\-Message events.

\begin{Desc}
\item[See also:]{\bf KApplication::kipc\-Message()}{\rm (p.\,\pageref{classKApplication_l8})} \end{Desc}
\begin{Desc}
\item[Author:]Geert Jansen $<${\tt jansen@kde.org}$>$ \end{Desc}




Definition at line 49 of file kipc.h.

\subsection{Member Enumeration Documentation}
\index{KIPC@{KIPC}!Message@{Message}}
\index{Message@{Message}!KIPC@{KIPC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KIPC::Message}}\label{classKIPC_w9}


A identifier for messages. 

Messages below User\-Message are system messages, messages above can be defined by the user. \begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{UserMessage@{UserMessage}!KIPC@{KIPC}}\index{KIPC@{KIPC}!UserMessage@{UserMessage}}\item[{\em 
User\-Message\label{classKIPC_w9w8}
}]\begin{Desc}
\item[Since:]3.1 \end{Desc}
\end{description}
\end{Desc}



Definition at line 56 of file kipc.h.

\subsection{Member Function Documentation}
\index{KIPC@{KIPC}!sendMessage@{sendMessage}}
\index{sendMessage@{sendMessage}!KIPC@{KIPC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIPC::send\-Message ({\bf Message} {\em msg}, WId {\em w}, int {\em data} = {\tt 0})\hspace{0.3cm}{\tt  [static]}}\label{classKIPC_e0}


Send a message to a specific application. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em msg}]The message to send. \item[{\em w}]The window id of a toplevel window of the target application. \item[{\em data}]An optional integer of data. \end{description}
\end{Desc}


Definition at line 59 of file kipc.cpp.

Referenced by send\-Message\-All().\index{KIPC@{KIPC}!sendMessageAll@{sendMessageAll}}
\index{sendMessageAll@{sendMessageAll}!KIPC@{KIPC}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIPC::send\-Message\-All ({\bf Message} {\em msg}, int {\em data} = {\tt 0})\hspace{0.3cm}{\tt  [static]}}\label{classKIPC_e1}


Send a message to all {\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} application on the current display. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em msg}]The message to send. \item[{\em data}]An optional integer of data. \end{description}
\end{Desc}


Definition at line 88 of file kipc.cpp.

References send\-Message().

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