\section{KParts::Browser\-Interface Class Reference}
\label{classKParts_1_1BrowserInterface}\index{KParts::BrowserInterface@{KParts::BrowserInterface}}
The purpose of this interface is to allow a direct communication between a KPart and the hosting browser shell (for example Konqueror) .  


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

Inheritance diagram for KParts::Browser\-Interface:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=84pt]{classKParts_1_1BrowserInterface__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KParts::Browser\-Interface:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=84pt]{classKParts_1_1BrowserInterface__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Browser\-Interface} ({\bf QObject} $\ast${\bf parent}, const  char $\ast${\bf name}=0)\label{classKParts_1_1BrowserInterface_a0}

\item 
void {\bf call\-Method} (const  char $\ast${\bf name}, const  {\bf QVariant} \&argument)
\begin{CompactList}\small\item\em Perform a dynamic invocation of a method in the {\bf Browser\-Interface}{\rm (p.\,\pageref{classKParts_1_1BrowserInterface})} implementation. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
The purpose of this interface is to allow a direct communication between a KPart and the hosting browser shell (for example Konqueror) . 

A shell implementing this interface can propagate it to embedded kpart components by using the set\-Browser\-Interface call of the part's {\bf KParts::Browser\-Extension}{\rm (p.\,\pageref{classKParts_1_1BrowserExtension})} object.

This interface looks not very rich, but the main functionality is implemented using the {\bf call\-Method}{\rm (p.\,\pageref{classKParts_1_1BrowserInterface_a2})} method for part-$>$shell communication and using {\bf Qt} properties for allowing a part to to explicitly query information from the shell.

Konqueror in particular, as 'reference' implementation, provides the following functionality through this interface:

{\bf Qt} properties: Q\_\-PROPERTY( uint history\-Length READ history\-Length );

Callable methods: void go\-History( int ); 



Definition at line 32 of file browserinterface.h.

\subsection{Member Function Documentation}
\index{KParts::BrowserInterface@{KParts::Browser\-Interface}!callMethod@{callMethod}}
\index{callMethod@{callMethod}!KParts::BrowserInterface@{KParts::Browser\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Browser\-Interface::call\-Method (const char $\ast$ {\em name}, const {\bf QVariant} \& {\em argument})}\label{classKParts_1_1BrowserInterface_a2}


Perform a dynamic invocation of a method in the {\bf Browser\-Interface}{\rm (p.\,\pageref{classKParts_1_1BrowserInterface})} implementation. 

Methods are to be implemented as simple {\bf Qt} slots. 

Definition at line 22 of file browserinterface.cpp.

References QObject::meta\-Object(), KStd\-Accel::name(), QVariant::to\-Bool(), QVariant::to\-Int(), QVariant::to\-String(), QVariant::to\-String\-List(), QVariant::to\-UInt(), and QVariant::type().

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