From e0e61ca3f5b4c25a30d603a6856d247e2812ab33 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 12 Feb 2013 12:51:03 +0100 Subject: [PATCH] remove last pieces of remote plasmoids --- plasma/CMakeLists.txt | 3 - plasma/config-plasma.h.cmake | 2 - plasma/private/accessmanager_p.h | 54 -------- plasma/private/applet_p.cpp | 1 - plasma/private/applet_p.h | 2 - plasma/private/joliemessagehelper_p.h | 122 ------------------ plasma/servicejob.h | 2 - plasma/tests/CMakeLists.txt | 1 - plasma/tests/signed.plasmoid | Bin 1540 -> 0 bytes plasma/tests/signed.plasmoid.invalid.sig | Bin 74 -> 0 bytes plasma/tests/signed.plasmoid.sig | Bin 72 -> 0 bytes plasma/tests/signedPackage/contents.hash | 1 - plasma/tests/signedPackage/contents.hash.sig | Bin 72 -> 0 bytes .../tests/signedPackage/contents/code/main.js | 45 ------- .../tests/signedPackage/contents/images/dummy | 0 plasma/tests/signedPackage/metadata.desktop | 36 ------ plasma/tests/signingtest.cpp | 104 --------------- plasma/tests/signingtest.h | 60 --------- 18 files changed, 433 deletions(-) delete mode 100644 plasma/private/accessmanager_p.h delete mode 100644 plasma/private/joliemessagehelper_p.h delete mode 100644 plasma/tests/signed.plasmoid delete mode 100644 plasma/tests/signed.plasmoid.invalid.sig delete mode 100644 plasma/tests/signed.plasmoid.sig delete mode 100644 plasma/tests/signedPackage/contents.hash delete mode 100644 plasma/tests/signedPackage/contents.hash.sig delete mode 100644 plasma/tests/signedPackage/contents/code/main.js delete mode 100644 plasma/tests/signedPackage/contents/images/dummy delete mode 100644 plasma/tests/signedPackage/metadata.desktop delete mode 100644 plasma/tests/signingtest.cpp delete mode 100644 plasma/tests/signingtest.h diff --git a/plasma/CMakeLists.txt b/plasma/CMakeLists.txt index f0aa7619c..00b15046e 100644 --- a/plasma/CMakeLists.txt +++ b/plasma/CMakeLists.txt @@ -28,9 +28,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE4_INCLUDE_DIR} ${KDE4_INCLUDE_DIR}/KDE - ${CMAKE_SOURCE_DIR}/plasma/private/qtjolie-branch/qtjolie - ${CMAKE_SOURCE_DIR}/plasma/private/qtjolie-branch - ${CMAKE_SOURCE_DIR}/plasma/private/qtjolie-branch/includes ${ki18n_SOURCE_DIR}/src ${ki18n_BINARY_DIR}/src ${KDE4_INCLUDE_DIR}/threadweaver diff --git a/plasma/config-plasma.h.cmake b/plasma/config-plasma.h.cmake index f636e578c..f2da23576 100644 --- a/plasma/config-plasma.h.cmake +++ b/plasma/config-plasma.h.cmake @@ -1,5 +1,3 @@ -#cmakedefine01 ENABLE_REMOTE_WIDGETS - #cmakedefine01 PLASMA_NO_KDEWEBKIT #cmakedefine01 PLASMA_NO_SOLID #cmakedefine01 PLASMA_NO_KIO diff --git a/plasma/private/accessmanager_p.h b/plasma/private/accessmanager_p.h deleted file mode 100644 index a9c5f38ea..000000000 --- a/plasma/private/accessmanager_p.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009 by Rob Scheepmaker - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, - * Boston, MA 02110-1301 USA - */ - -#ifndef ACCESSMANAGER_P_H -#define ACCESSMANAGER_P_H - -#include - -#include "../remote/accessmanager.h" - -class KJob; - -namespace DNSSD -{ - class ServiceBrowser; -} - -namespace Plasma -{ - -class AccessManagerPrivate -{ - public: - AccessManagerPrivate(AccessManager *manager); - ~AccessManagerPrivate(); - void slotJobFinished(KJob *job); - void slotAddService(DNSSD::RemoteService::Ptr service); - void slotRemoveService(DNSSD::RemoteService::Ptr service); - - AccessManager *q; - DNSSD::ServiceBrowser *browser; - QMap services; - QMap zeroconfServices; -}; - -} - -#endif diff --git a/plasma/private/applet_p.cpp b/plasma/private/applet_p.cpp index c4512f9e2..4145db3df 100644 --- a/plasma/private/applet_p.cpp +++ b/plasma/private/applet_p.cpp @@ -52,7 +52,6 @@ namespace Plasma AppletPrivate::AppletPrivate(KService::Ptr service, const KPluginInfo *info, int uniqueID, Applet *applet) : appletId(uniqueID), q(applet), - remotingService(0), immutability(Mutable), appletDescription(info ? *info : KPluginInfo(service)), mainConfig(0), diff --git a/plasma/private/applet_p.h b/plasma/private/applet_p.h index 3e6c3fe14..ad189d4c2 100644 --- a/plasma/private/applet_p.h +++ b/plasma/private/applet_p.h @@ -130,7 +130,6 @@ public: Applet *q; // applet attributes - Service *remotingService; ImmutabilityType immutability; // applet info we keep around in case its needed @@ -155,7 +154,6 @@ public: QWeakPointer shortcutEditor; //TODO: subclass KConfigDialog and encapsulate this in there ItemStatus itemStatus; - KUrl remoteLocation; // the applet can change size policy by itself, so save the old one for eventual restore QSizePolicy preferredSizePolicy; diff --git a/plasma/private/joliemessagehelper_p.h b/plasma/private/joliemessagehelper_p.h deleted file mode 100644 index c1529f415..000000000 --- a/plasma/private/joliemessagehelper_p.h +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright © 2009 Rob Scheepmaker - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Library General Public License version 2 as - * published by the Free Software Foundation - * - * 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 Library 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. - */ - -#ifndef JOLIEMESSAGEHELPER_H -#define JOLIEMESSAGEHELPER_H - -#include -#include -#include -#include -#include - -namespace JolieMessage { - namespace Field { - static const QByteArray DESTINATION = "Destination"; - static const QByteArray ENABLEDOPERATIONS - = "EnabledOperations"; - static const QByteArray IDENTITY = "Credentials"; - static const QByteArray IDENTITYID = "CredentialsID"; - static const QByteArray PARAMETERS = "Parameters"; - static const QByteArray PIN = "PIN"; - static const QByteArray RESULT = "Result"; - static const QByteArray SIGNATURE = "Signature"; - static const QByteArray TOKEN = "Token"; - static const QByteArray UUID = "UUID"; - static const QByteArray OPERATION = "Operation"; - static const QByteArray OPERATIONSDESCRIPTION - = "OperationsDescription"; - } - - namespace Error { - static const QByteArray INVALIDTOKEN = "InvalidToken"; - static const QByteArray REQUIREPIN = "RequirePIN"; - static const QByteArray ACCESSDENIED = "AccessDenied"; - } - - inline QString errorMessage(const QByteArray &error) - { - if (error == Error::INVALIDTOKEN) { - return i18nc("Error message, access to a remote service failed.", - "Invalid token."); - } else if (error == Error::REQUIREPIN) { - return i18nc("Error message, access to a remote service failed.", - "Matching password required."); - } else if (error == Error::ACCESSDENIED) { - return i18nc("Error message, access to a remote service failed.", - "Access denied."); - } - return i18n("Unknown error."); - } - - inline QByteArray field(const QByteArray &fieldName, const Jolie::Message &message) - { - if (!message.data().children(fieldName).isEmpty()) { - return message.data().children(fieldName).first().toByteArray(); - } else { - return QByteArray(); - } - } - - inline QByteArray payload(const Jolie::Message &message) - { - QByteArray result; - //result = "payload!"; - result.append(message.operationName()); - result.append(field(Field::PARAMETERS, message)); - result.append(field(Field::IDENTITY, message)); - result.append(field(Field::IDENTITYID, message)); - result.append(field(Field::OPERATION, message)); - result.append(field(Field::OPERATIONSDESCRIPTION, message)); - result.append(field(Field::PIN, message)); - result.append(field(Field::TOKEN, message)); - return result; - } - - inline QString print(const Jolie::Message &message) - { - QString result; - result = - QString("\n=== JOLIE MESSAGE ===\nId = %1\nOperation = %2\nResource = %3\nData= %4\n") - .arg(QString::number(message.id())) - .arg(QString(message.operationName())) - .arg(QString(message.resourcePath())) - .arg(QString(message.data().toByteArray())); - - result += "=====================\n"; - - foreach (const QByteArray &child, message.data().childrenNames()) { - result += "\n******" + child + "******\n"; - foreach (const Jolie::Value &value, message.data().children(child)) { - if (child == Field::TOKEN || child == Field::PARAMETERS - || child == Field::SIGNATURE) { - result += value.toByteArray().toBase64(); - } else { - result += value.toByteArray(); - } - } - } - - result += "\n== END OF MESSAGE ==\n"; - - return result; - } -} - -#endif - diff --git a/plasma/servicejob.h b/plasma/servicejob.h index caa909d86..f133c9a4f 100644 --- a/plasma/servicejob.h +++ b/plasma/servicejob.h @@ -120,8 +120,6 @@ private: Q_PRIVATE_SLOT(d, void preventAutoStart()) ServiceJobPrivate * const d; - - friend class RemoteServiceJob; }; } // namespace Plasma diff --git a/plasma/tests/CMakeLists.txt b/plasma/tests/CMakeLists.txt index 800af4d27..87daff0d9 100644 --- a/plasma/tests/CMakeLists.txt +++ b/plasma/tests/CMakeLists.txt @@ -20,7 +20,6 @@ PLASMA_UNIT_TESTS( packagestructuretest plasmoidpackagetest runnercontexttest - #signingtest TODO re-enable ) kde4_add_unit_test(storagetest TESTNAME plasma-storage storagetest.cpp ../private/storage.cpp ../private/storagethread.cpp) diff --git a/plasma/tests/signed.plasmoid b/plasma/tests/signed.plasmoid deleted file mode 100644 index 68ca4b70accd1e8d70bbaca2f8253674d3d8b54b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1540 zcmWIWW@h1H0D;oTN;@zEN^mmBFeK;am89mC6zhkEa56B*X7%_!u)pV9TEWf0$nt`j zfq^9js5k&_L|SPliV=LsMkME_q(aPz4_ScA91);-9AKyLt44;qF)=V~Wno|t#V{u~ zF*8pus~GMqH3tl5%?&x2ciVtx?{DoJZvvz}a^HlNaI`UMZxEB6miuzUYNd-CgLtj0NN!;-%N2zy=OngYFJpC!X35?CLd;Xc zaZ!kb*^{UhTMuTg%09y9=+UW|63Y6->QDR8B)%Um8O>$e(l0VTb8A_9c~we=Q~mx| zN{?P~|LeH5c$e+8mPqF-d>i`DDQl=d7SrYQ>IsSnJD;^U^umJUvl(Zf%3IYHVCF5j z;f{vR-1yMMy&NzPkJ8-PL^2$Y)ARFP=H@NKP#0 zWmu-vqNVN&?IJ&)$^0a^`AkQ8xs&||hSvHQPR?yhUrcV7tXY=-!qYpkuX5oP*@tHD zr9~n)Etwp9Z&J6M4L=w2#=`sjmQ}+4b}rq^5wp?FbA`h3qR^(KnSbXooqAzvYpgWk zx=|*V>#djfZhA|Zalb80*IuH@!p`>6s39jH&q~s!Pit<_+-)MxR*clm@I@z_oI z6XSw5_}Qj8Z%>-yv;OO?AUn&r!dd!{)sISQY%Fm$%?Q7;=ZQ!D4z`QiGD7*)zI%Kv zjhj;}yXkX$`dOlsWf*Yf0@W`3ajtNFp(8HsCl zg$I?DE!{kAy^cS(=CPZ~r#UAwxt6J=O2~gae)Ri-`1sp3m+qGR-_FFf)~)oQ72i#L zP~t`;%Fw!;8UscK23=sn6aXg5+|-i9l*E!my_D4A?2`NfeCaVaFxv01fxw^dnl+5e z3mCjZd>fn=PK;s{dX((BZRPDBito31<@a9>5z(x9cjirn&F`7YZ*Q_kTJ$Z~|Hviw zRaho5)Kxg*-fXd_MhPrt_a@G$%)Yqs+{I-Rg?m&Mu9|RShugIS3jJ(P9#_SBJ$`c4 z>x}k$ljP&8f_bfamI)=*a;*rL=wIgaapAnrPO;18DaLMd5L3G>5S21fgn7ZTr!ns* zne*P;|ASk?e9v<2_{T?B$wqhk8og@$?W%;J3c_k0cXSFBPG&ycdeCX%`Ls)KFy z_VtFJH%hKPH&<2dwdlh+%F4;jHzn3wHC=kkh`m+z#+R8J&q}*_$-bWbrp#yGV{=J2 z+qAToEWQ2eu{_62rah6kaP`aiPfDV1IlemY{1N=l=*#i8Z7(b~{=Hi&ANvPbtS~ak zG2<$mB%q~~0K;2H5EH4SVuh4c7^M`#ILvYi**Irp diff --git a/plasma/tests/signed.plasmoid.sig b/plasma/tests/signed.plasmoid.sig deleted file mode 100644 index cbaacf7949b14aadeb8d4d69105651a9a0b2a0e7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 72 zcmV-O0Jr~$Mg#y60ssaD0!`jf!~hBj5Z1RYv8VCdLocELo+2&sw%v?~v&Tv1!-fs_ eS!*bY=K!Bu-)m5&3a)btmFv=k?tH^|D(GqaP9TQ> diff --git a/plasma/tests/signedPackage/contents.hash b/plasma/tests/signedPackage/contents.hash deleted file mode 100644 index 7daabbb6a..000000000 --- a/plasma/tests/signedPackage/contents.hash +++ /dev/null @@ -1 +0,0 @@ -5fd34038c612b9ee59ba9b8199594a370009f7ff \ No newline at end of file diff --git a/plasma/tests/signedPackage/contents.hash.sig b/plasma/tests/signedPackage/contents.hash.sig deleted file mode 100644 index 4c74f37f8bf2b8c668aa0592d1697e71e46bfeed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 72 zcmV-O0Jr~$Mg#y60ssaD0!`jw;{XZ?5Z1RYv8VCdLw1$`poHmne1dg8#mX8`d5x41 e!2HyYG60`_==8_4uZC>}4@+Bi<~ZXC9Fa!@@gE)l diff --git a/plasma/tests/signedPackage/contents/code/main.js b/plasma/tests/signedPackage/contents/code/main.js deleted file mode 100644 index 50a8f62c9..000000000 --- a/plasma/tests/signedPackage/contents/code/main.js +++ /dev/null @@ -1,45 +0,0 @@ -// because we put the following line in the metadata.desktop file, we have access -// to the HTTP extension in this Plasmoid. -// -// X-Plasma-RequiredExtensions=http -// -// More documentation can be found here: -// -// http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/API#Extensions - -output = new TextEdit -output.readOnly = true - -layout = new LinearLayout -layout.orientation = QtVertical -layout.addItem(output) - -// in case our request for HTTP urls in the metadata.desktop was rejected (e.g. due -// to security restrictions) we won't have a plasmoid.get, so let's check for it -// before using it! -if (plasmoid.getUrl) { - var getJob = plasmoid.getUrl("http://dot.kde.org/rss.xml"); - function recv(job, data) - { - if (job == getJob) { - print("we have our job") - if (data.length) { - output.append(data.toUtf8()) - } - } - } - - function fini(job) - { - if (job == getJob) { - print("our job is finished") - } else { - print("some other job is finished?") - } - } - - getJob.data.connect(recv) - getJob.finished.connect(fini) -} else { - output.text = i18n("HTTP access denied!") -} diff --git a/plasma/tests/signedPackage/contents/images/dummy b/plasma/tests/signedPackage/contents/images/dummy deleted file mode 100644 index e69de29bb..000000000 diff --git a/plasma/tests/signedPackage/metadata.desktop b/plasma/tests/signedPackage/metadata.desktop deleted file mode 100644 index 966cb7785..000000000 --- a/plasma/tests/signedPackage/metadata.desktop +++ /dev/null @@ -1,36 +0,0 @@ -[Desktop Entry] -Name=JavaScript File Operations -Name[de]=JavaScript-Datei-Aktionen -Name[nl]=Bestandsbewerkingen in JavaScript -Name[pt]=Operações do Ficheiro de JavaScript -Name[pt_BR]=Operações com arquivos JavaScript -Name[sk]=JavaScriptové súborové operácie -Name[uk]=Дії з файлами за допомогою JavaScript -Name[x-test]=xxJavaScript File Operationsxx -Comment=Demonstrates accessing data via HTTP in JavaScript -Comment[de]=Demonstriert den Zugriff auf Daten über HTTP in JavaScript -Comment[nl]=Demonstreert toegang tot gegevens via HTTP in JavaScript -Comment[pt]=Demonstra o acesso aos dados por HTTP em JavaScript -Comment[pt_BR]=Demonstra o acesso a dados por HTTP em JavaScript -Comment[sk]=Demonštruje prístup k údajom cez HTTP v JavaScripte -Comment[uk]=Демонстрації доступу до даних за допомогою HTTP мовою JavaScript -Comment[x-test]=xxDemonstrates accessing data via HTTP in JavaScriptxx -Icon=text-x-generic - -Type=Service -X-KDE-ServiceTypes=Plasma/Applet - -X-Plasma-API=javascript -X-Plasma-MainScript=code/main.js - -X-KDE-PluginInfo-Author=Aaron Seigo -X-KDE-PluginInfo-Email=aseigo@kde.org -X-KDE-PluginInfo-Name=org.kde.plasma.simpified-javascript-http-example -X-KDE-PluginInfo-Version=0.1 -X-KDE-PluginInfo-Website= -X-KDE-PluginInfo-Category=Examples -X-KDE-PluginInfo-Depends= -X-KDE-PluginInfo-License=GPL - -X-Plasma-OptionalExtensions=http -X-Plasma-MainScript=code/main.js diff --git a/plasma/tests/signingtest.cpp b/plasma/tests/signingtest.cpp deleted file mode 100644 index 2d20f0e9e..000000000 --- a/plasma/tests/signingtest.cpp +++ /dev/null @@ -1,104 +0,0 @@ -/******************************************************************************** -* Copyright 2011 by Aaron Seigo * -* * -* This library is free software; you can redistribute it and/or * -* modify it under the terms of the GNU Library General Public * -* License as published by the Free Software Foundation; either * -* version 2 of the License, or (at your option) any later version. * -* * -* This library 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 * -* Library General Public License for more details. * -* * -* You should have received a copy of the GNU Library General Public License * -* along with this library; see the file COPYING.LIB. If not, write to * -* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * -* Boston, MA 02110-1301, USA. * -*********************************************************************************/ - -#include "signingtest.h" - -#include - -#include - -#include "applet.h" -#include "remote/signing.h" -#include "pluginloader.h" -#include - -static const QString fingerprint("8B8B22090C6F7C47B1EAEE75D6B72EB1A7F1DB43"); -static const QString shortFingerprint("D6B72EB1A7F1DB43"); - -SigningTest::SigningTest(QObject *parent) - : QObject(parent), - m_signing(0), - m_package(Plasma::PluginLoader::self()->loadPackage("Plasma/Applet")) -{ - m_package.setPath(QString::fromLatin1(KDESRCDIR) + "signedPackage"); - const QString prefix = QString::fromLatin1(KDESRCDIR); - m_path = prefix + "signed.plasmoid"; - m_sig = prefix + "signed.plasmoid.sig"; - m_invalidSig = prefix + "signed.plasmoid.invalid.sig"; -} - -void SigningTest::initTestCase() -{ - QStandardPaths::enableTestMode(true); -} - -void SigningTest::confirmCtorPerformance() -{ - QTime t; - t.start(); - m_signing = new Plasma::Signing; - QVERIFY(t.elapsed() < 50); -} - -void SigningTest::missingFiles() -{ - QVERIFY(m_signing->signerOf(KUrl("/nonexistantpackage"), KUrl("/noneexistantsignature")).isEmpty()); - QVERIFY(m_signing->signerOf(KUrl(m_path), KUrl("/noneexistantsignature")).isEmpty()); - QVERIFY(m_signing->signerOf(KUrl("/nonexistantpackage"), KUrl(m_sig)).isEmpty()); -} - -void SigningTest::invalidSignature() -{ - QCOMPARE(m_signing->signerOf(m_path, m_invalidSig), QString()); -} - -void SigningTest::validSignature() -{ - QCOMPARE(m_signing->signerOf(m_path, m_sig), fingerprint); -} - -void SigningTest::validSignatureWithoutDefinedSigFile() -{ - QCOMPARE(m_signing->signerOf(m_path), fingerprint); -} - -void SigningTest::validPackage() -{ - const QString sig = m_signing->signerOf(m_package); - QVERIFY(sig == fingerprint || sig == shortFingerprint); -} - -void SigningTest::trustLevel() -{ - QCOMPARE(m_signing->trustLevelOf(QString()), Plasma::UnverifiableTrust); - QCOMPARE(m_signing->trustLevelOf(fingerprint), Plasma::SelfTrusted); - //FIXME: need to test other TrustLevel values -} - -void SigningTest::confirmDtorPerformance() -{ - QTime t; - t.start(); - delete m_signing; - m_signing = 0; - QVERIFY(t.elapsed() < 50); -} - -QTEST_MAIN(SigningTest) - diff --git a/plasma/tests/signingtest.h b/plasma/tests/signingtest.h deleted file mode 100644 index 73e82a882..000000000 --- a/plasma/tests/signingtest.h +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************** -* Copyright 2011 by Aaron Seigo * -* * -* This library is free software; you can redistribute it and/or * -* modify it under the terms of the GNU Library General Public * -* License as published by the Free Software Foundation; either * -* version 2 of the License, or (at your option) any later version. * -* * -* This library 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 * -* Library General Public License for more details. * -* * -* You should have received a copy of the GNU Library General Public License * -* along with this library; see the file COPYING.LIB. If not, write to * -* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * -* Boston, MA 02110-1301, USA. * -*********************************************************************************/ - -#ifndef SIGNINGTEST_H - -#include - -#include "plasma/package.h" - -namespace Plasma -{ - class Signing; -} - - -class SigningTest : public QObject -{ - Q_OBJECT -public: - explicit SigningTest(QObject *parent = 0); - -public Q_SLOTS: - void initTestCase(); - -private Q_SLOTS: - void confirmCtorPerformance(); - void missingFiles(); - void invalidSignature(); - void validSignature(); - void validSignatureWithoutDefinedSigFile(); - void validPackage(); - void trustLevel(); - void confirmDtorPerformance(); - -private: - Plasma::Signing *m_signing; - Plasma::Package m_package; - QString m_path; - QString m_sig; - QString m_invalidSig; -}; - -#endif -