From owner-p4-projects Tue Jul 9 21:27:57 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 87A4437B405; Tue, 9 Jul 2002 21:27:49 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27D8737B400 for ; Tue, 9 Jul 2002 21:27:49 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 928BE43E3B for ; Tue, 9 Jul 2002 21:27:48 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6A4RmJU060841 for ; Tue, 9 Jul 2002 21:27:48 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6A4RmLW060838 for perforce@freebsd.org; Tue, 9 Jul 2002 21:27:48 -0700 (PDT) Date: Tue, 9 Jul 2002 21:27:48 -0700 (PDT) Message-Id: <200207100427.g6A4RmLW060838@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 14010 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14010 Change 14010 by rwatson@rwatson_paprika on 2002/07/09 21:27:24 Make the DCOP konqueror call into a macro that can be invoked from any class that includes the appropriate include file. Easier than figuring the OOP goo. Affected files ... .. //depot/projects/trustedbsd/misc/kmacmanager/konqueror.h#1 add .. //depot/projects/trustedbsd/misc/kmacmanager/modulelist.cc#2 edit .. //depot/projects/trustedbsd/misc/kmacmanager/sysctllist.cc#3 edit .. //depot/projects/trustedbsd/misc/kmacmanager/test.cc#3 edit Differences ... ==== //depot/projects/trustedbsd/misc/kmacmanager/modulelist.cc#2 (text+ko) ==== @@ -45,6 +45,7 @@ #include +#include "konqueror.h" #include "modulelist.moc" #define BUFLEN 256 @@ -277,6 +278,7 @@ refresh(); sysctllist->refresh(NULL); + KONQUEROR_REFRESH(); } void @@ -332,4 +334,5 @@ refresh(); sysctllist->refresh(NULL); + KONQUEROR_REFRESH(); } ==== //depot/projects/trustedbsd/misc/kmacmanager/sysctllist.cc#3 (text+ko) ==== @@ -42,11 +42,11 @@ #include #include +#include +#include + +#include "konqueror.h" #include "sysctllist.moc" - -#include "qinputdialog.h" -#include "qmessagebox.h" - #include "sysctl_util.h" #define BUFLEN 256 @@ -235,8 +235,10 @@ "%s: %s", itemname, strerror(error)); QMessageBox::warning(this, "Error setting sysctl", buf); - } else + } else { refresh(itemname); + KONQUEROR_REFRESH(); + } } free(itemname); } ==== //depot/projects/trustedbsd/misc/kmacmanager/test.cc#3 (text+ko) ==== @@ -37,10 +37,11 @@ #include #include "test.moc" -#include #include #include +#include "konqueror.h" + Test::Test() : KMainWindow() { @@ -88,10 +89,7 @@ void Test::slotRefreshKonquerors() { - if (!kapp->dcopClient()->isAttached()) - kapp->dcopClient()->attach(); - kapp->dcopClient()->send("konqueror*", "konqueror-mainwindow#1", - "reload()", ""); + KONQUEROR_REFRESH(); } void Test::slotRefreshModules() To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message