dolphin/nsplugins/kcm_nsplugins.cpp
Oswald Buddenhagen 11ca147adf KProcess -> K3Process
KShellProcess -> K3ShellProcess
KProcIO -> K3ProcIO
KProcessController -> K3ProcessController

not deprecating, as we don't have a replacement yet.
not moving yet, as kdelibs still has heavy dependencies on it.

agreed upon with dfaure.


svn path=/trunk/KDE/kdebase/nsplugins/; revision=646732
2007-03-26 15:07:10 +00:00

56 lines
1.6 KiB
C++

/*
Copyright (c) 2003 Dirk Mueller <mueller@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <QRegExp>
#include <QLayout>
#include <kstandarddirs.h>
#include <klocale.h>
#include <ksharedconfig.h>
#include <kiconloader.h>
#include <kfiledialog.h>
#include <kurlrequester.h>
#include <kdebug.h>
#include <kapplication.h>
#include <k3procio.h>
#include <ktoolinvocation.h>
extern "C"
{
KDE_EXPORT void init_nsplugin()
{
KConfigGroup config(KSharedConfig::openConfig( "kcmnspluginrc", KConfig::NoGlobals ), "Misc");
bool scan = config.readEntry( "startkdeScan", false);
bool firstTime = config.readEntry( "firstTime", true);
if ( scan || firstTime )
{
KToolInvocation::kdeinitExec("nspluginscan");
}
if (firstTime) {
config.writeEntry( "firstTime", false );
config.sync();
}
}
}