Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5781c8e8 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Remove other KStandardDirs

parent ef4e14a8
......@@ -24,7 +24,7 @@
#include <kpluginfactory.h>
#include <kdebug.h>
#include <kstandarddirs.h>
#include <QStandardPaths>
#include <kprocess.h>
#include <ktemporaryfile.h>
#include <kcodecs.h>
......@@ -57,7 +57,7 @@ LatexPlugin::LatexPlugin(QObject *parent, const QVariantList & /*args*/)
connect(Kopete::ChatSessionManager::self(), SIGNAL(chatSessionCreated(Kopete::ChatSession *)),
this, SLOT(slotNewChatSession(Kopete::ChatSession *)));
m_convScript = KStandardDirs::findExe(QStringLiteral("kopete_latexconvert.sh"));
m_convScript = QStandardPaths::findExecutable(QStringLiteral("kopete_latexconvert.sh"));
//Add GUI action to all already existing kmm (if the plugin is launched when kopete already rining)
const QList<Kopete::ChatSession *> sessions = Kopete::ChatSessionManager::self()->sessions();
......@@ -86,7 +86,7 @@ void LatexPlugin::slotNewChatSession(Kopete::ChatSession *KMM)
void LatexPlugin::slotMessageAboutToShow(Kopete::Message &msg)
{
QString mMagick = KStandardDirs::findExe(QStringLiteral("convert"));
QString mMagick = QStandardPaths::findExecutable(QStringLiteral("convert"));
if (mMagick.isEmpty()) {
// show just once
if (!mMagickNotFoundShown) {
......
......@@ -30,7 +30,7 @@
#include <KLocalizedString>
#include <KGlobal>
#include <KStandardDirs>
#include "plugin_otr_debug.h"
#include <qaction.h>
#include <kconfig.h>
......@@ -50,6 +50,7 @@
#include <kopetemessageevent.h>
#include <kopeteprotocol.h>
#include <ui/kopeteview.h>
#include <QStandardPaths>
/**
* @author Michael Zanetti
......@@ -83,8 +84,8 @@ OTRPlugin::OTRPlugin (QObject *parent, const QVariantList & /*args*/)
otrlChatInterface->setPlugin(this);
// Checking file Permissions
OtrlChatInterface::self()->checkFilePermissions(QString(KGlobal::dirs()->saveLocation("data", QStringLiteral("kopete_otr/"), true)) + "privkeys");
OtrlChatInterface::self()->checkFilePermissions(QString(KGlobal::dirs()->saveLocation("data", QStringLiteral("kopete_otr/"), true)) + "fingerprints");
OtrlChatInterface::self()->checkFilePermissions(QString(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QStringLiteral("kopete_otr/")));
OtrlChatInterface::self()->checkFilePermissions(QString(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QStringLiteral("kopete_otr/")));
//setting the policy
slotSettingsChanged();
......
......@@ -36,9 +36,8 @@
#include <QLineEdit>
#include <kmessagebox.h>
#include <kconfig.h>
#include <kstandarddirs.h>
#include <ksharedconfig.h>
#include <QStandardPaths>
// Kopete Includes
#include <addcontactpage.h>
......@@ -55,7 +54,7 @@ WPEditAccount::WPEditAccount(QWidget *parent, Kopete::Account *theAccount)
mProtocol = WPProtocol::protocol();
QString tmpSmbcPath = KStandardDirs::findExe(QStringLiteral("smbclient"));
QString tmpSmbcPath = QStandardPaths::findExecutable(QStringLiteral("smbclient"));
if (account()) {
mHostName->setText(account()->accountId());
......
......@@ -30,7 +30,7 @@
#include <kpluginfactory.h>
#include <kmessagebox.h>
#include <kconfig.h>
#include <kstandarddirs.h>
#include <QStandardPaths>
#include <ktoolinvocation.h>
#include <KSharedConfig>
......@@ -148,8 +148,8 @@ void WPProtocol::installSamba()
// kDebug(14170) << "WPProtocol::installSamba()" endl;
QStringList args;
args += KStandardDirs::findExe(QStringLiteral("winpopup-install"));
args += KStandardDirs::findExe(QStringLiteral("winpopup-send"));
args += QStandardPaths::findExecutable(QStringLiteral("winpopup-install"));
args += QStandardPaths::findExecutable(QStringLiteral("winpopup-send"));
if (KToolInvocation::kdeinitExecWait(QStringLiteral("kdesu"), args) == 0) {
KMessageBox::information(Kopete::UI::Global::mainWidget(), i18n("The Samba configuration file has been modified."), i18n("Configuration Successful"));
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment