.TH "KParts::BrowserInterface" 3 "28 Jan 2004" "kparts Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KParts::BrowserInterface \- The purpose of this interface is to allow a direct communication between a KPart and the hosting browser shell (for example Konqueror) .  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <browserinterface.h>\fP
.PP
Inherits \fBQObject\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBBrowserInterface\fP (\fBQObject\fP *\fBparent\fP, const  char *\fBname\fP=0)"
.br
.ti -1c
.RI "void \fBcallMethod\fP (const  char *\fBname\fP, const  \fBQVariant\fP &argument)"
.br
.RI "\fIPerform a dynamic invocation of a method in the \fBBrowserInterface\fP implementation. \fP"
.in -1c
.SH "Detailed Description"
.PP 
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 setBrowserInterface call of the part's \fBKParts::BrowserExtension\fP object.
.PP
This interface looks not very rich, but the main functionality is implemented using the \fBcallMethod\fP method for part->shell communication and using \fBQt\fP properties for allowing a part to to explicitly query information from the shell.
.PP
Konqueror in particular, as 'reference' implementation, provides the following functionality through this interface:
.PP
\fBQt\fP properties: Q_PROPERTY( uint historyLength READ historyLength );
.PP
Callable methods: void goHistory( int ); 
.PP
Definition at line 32 of file browserinterface.h.
.SH "Member Function Documentation"
.PP 
.SS "void BrowserInterface::callMethod (const char * name, const \fBQVariant\fP & argument)"
.PP
Perform a dynamic invocation of a method in the \fBBrowserInterface\fP implementation. Methods are to be implemented as simple \fBQt\fP slots. Definition at line 22 of file browserinterface.cpp.
.PP
References QObject::metaObject(), KStdAccel::name(), QVariant::toBool(), QVariant::toInt(), QVariant::toString(), QVariant::toStringList(), QVariant::toUInt(), and QVariant::type().

.SH "Author"
.PP 
Generated automatically by Doxygen for kparts Library from the source code.
