Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 2002 21:33:36 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 13948 for review
Message-ID:  <200207090433.g694Xa2W078518@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=13948

Change 13948 by rwatson@rwatson_paprika on 2002/07/08 21:33:03

	Teach the main class how to cause Konqueror windows to refresh
	using dcop, and add a menu option for it.  Eventually, should
	do this following relevant policy changes.  Due to bugs in
	Konqueror, I'm not sure it's possible to get all browsers to
	refresh, only most.

Affected files ...

.. //depot/projects/trustedbsd/misc/kmacmanager/test.cc#2 edit
.. //depot/projects/trustedbsd/misc/kmacmanager/test.h#2 edit

Differences ...

==== //depot/projects/trustedbsd/misc/kmacmanager/test.cc#2 (text+ko) ====

@@ -37,6 +37,7 @@
 #include <sys/types.h>
 
 #include "test.moc"
+#include <dcopclient.h>
 #include <qmessagebox.h>
 #include <qtextview.h>
 
@@ -45,6 +46,8 @@
 
 	file = new QPopupMenu();
 	file->insertItem("&About", this, SLOT(slotAbout()));
+	file->insertItem("Refresh &konquerors", this,
+	    SLOT(slotRefreshKonquerors()));
 	file->insertItem("Refresh &modules", this, SLOT(slotRefreshModules()));
 	file->insertItem("Refresh &sysctls", this, SLOT(slotRefreshSysctls()));
 	file->insertSeparator();
@@ -82,6 +85,15 @@
 	    "Network Associates, Inc.");
 }
 
+void Test::slotRefreshKonquerors()
+{
+
+	if (!kapp->dcopClient()->isAttached())
+		kapp->dcopClient()->attach();
+	kapp->dcopClient()->send("konqueror*", "konqueror-mainwindow#1",
+	    "reload()", "");
+}
+
 void Test::slotRefreshModules()
 {
 

==== //depot/projects/trustedbsd/misc/kmacmanager/test.h#2 (text+ko) ====

@@ -58,6 +58,7 @@
 	void closeEvent(QCloseEvent *);
 public slots:
 	void slotAbout();
+	void slotRefreshKonquerors();
 	void slotRefreshModules();
 	void slotRefreshSysctls();
 	void slotExit();

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207090433.g694Xa2W078518>