Source Code (Use browser search to find items of interest.)

Class Index

khelpcenter'Listener (./kdebase/khelpcenter/khc_main.h:7)

class Listener : public QObject
{
  Q_OBJECT
public:
  Listener() {}

 private slots:
  void slotAppRegistered( const QCString &appId );

};

khelpcenter'Listener::slotAppRegistered() (./kdebase/khelpcenter/khc_main.cc:45)

void Listener::slotAppRegistered( const QCString &appId )
{
  if ( appId.left( 9 ) == "konqueror" )
  {
    qDebug( "found it!!!! %s", appId.data() );

    QString tempProfile = locateLocal( "appdata", "konqprofile.tmp" );
    QFile f( tempProfile );
    f.open( IO_WriteOnly );

    QTextStream str( &f );

    str << "[Profile]" << endl;
    str << "Container0_Children=View1,View2" << endl;
    str << "Container0_Orientation=Horizontal" << endl;
    str << "Container0_SplitterSizes=30,70" << endl;
    str << "RootItem=Container0" << endl;
    str << "View1_PassiveMode=true" << endl;
    str << "View1_ServiceName=KHelpcenter" << endl;
    str << "View1_ServiceType=Browser/View" << endl;
    str << "View1_URL=file:/" << endl;
    str << "View2_PassiveMode=false" << endl;
    str << "View2_ServiceName=KonqHTMLView" << endl;
    str << "View2_ServiceType=text/html" << endl;
    str << "View2_URL=" << QString("file:" + locate("html", "default/khelpcenter/main.html")) << endl;

    f.close();

    kDebugInfo( "Calling stub.createBrowserWindowFromProfile" );
    KonquerorIface_stub stub( appId, "KonquerorIface" );
    stub.createBrowserWindowFromProfile( tempProfile );

    exit( 0 );
  }
}