mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
solid-hardware: remove unused SolidHardware methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
eab4d278fb
commit
6e1c1991c2
2 changed files with 1 additions and 46 deletions
|
@ -19,17 +19,14 @@
|
|||
|
||||
#include "solid-hardware.h"
|
||||
|
||||
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QMetaProperty>
|
||||
#include <QMetaEnum>
|
||||
#include <QTimer>
|
||||
|
||||
#include <kcomponentdata.h>
|
||||
#include <kcmdlineargs.h>
|
||||
#include <kdebug.h>
|
||||
#include <kjob.h>
|
||||
#include <klocale.h>
|
||||
|
||||
#include <solid/device.h>
|
||||
|
@ -419,28 +416,6 @@ bool SolidHardware::listen()
|
|||
return true;
|
||||
}
|
||||
|
||||
void SolidHardware::connectJob(KJob *job)
|
||||
{
|
||||
connect(job, SIGNAL(result(KJob *)),
|
||||
this, SLOT(slotResult(KJob *)));
|
||||
connect(job, SIGNAL(percent(KJob *, unsigned long)),
|
||||
this, SLOT(slotPercent(KJob *, unsigned long)));
|
||||
connect(job, SIGNAL(infoMessage(KJob *, const QString &, const QString &)),
|
||||
this, SLOT(slotInfoMessage(KJob *, const QString &)));
|
||||
}
|
||||
|
||||
void SolidHardware::slotPercent(KJob *job, unsigned long percent)
|
||||
{
|
||||
Q_UNUSED(job)
|
||||
std::cout << i18n("Progress: %1%" , percent) << std::endl;
|
||||
}
|
||||
|
||||
void SolidHardware::slotInfoMessage(KJob *job, const QString &message)
|
||||
{
|
||||
Q_UNUSED(job)
|
||||
std::cout << i18n("Info: %1" , message) << std::endl;
|
||||
}
|
||||
|
||||
void SolidHardware::deviceAdded(const QString &udi)
|
||||
{
|
||||
std::cout << "Device Added:" << std::endl;
|
||||
|
@ -453,20 +428,6 @@ void SolidHardware::deviceRemoved(const QString &udi)
|
|||
std::cout << "udi = '" << udi << "'" << std::endl;
|
||||
}
|
||||
|
||||
|
||||
void SolidHardware::slotResult(KJob *job)
|
||||
{
|
||||
m_error = 0;
|
||||
|
||||
if (job->error())
|
||||
{
|
||||
m_error = job->error();
|
||||
m_errorString = job->errorString();
|
||||
}
|
||||
|
||||
m_loop.exit();
|
||||
}
|
||||
|
||||
void SolidHardware::slotStorageResult(Solid::ErrorType error, const QVariant &errorData)
|
||||
{
|
||||
if (error) {
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
#include <solid/storageaccess.h>
|
||||
#include <solid/opticaldrive.h>
|
||||
|
||||
class KJob;
|
||||
|
||||
namespace Solid {
|
||||
namespace Control {
|
||||
class Authentication;
|
||||
|
@ -51,16 +49,12 @@ public:
|
|||
bool hwVolumeCall(VolumeCallType type, const QString &udi);
|
||||
|
||||
private:
|
||||
void connectJob(KJob *job);
|
||||
|
||||
QEventLoop m_loop;
|
||||
int m_error;
|
||||
QString m_errorString;
|
||||
|
||||
private slots:
|
||||
void slotStorageResult(Solid::ErrorType error, const QVariant &errorData);
|
||||
void slotResult(KJob *job);
|
||||
void slotPercent(KJob *job, unsigned long percent);
|
||||
void slotInfoMessage(KJob *job, const QString &message);
|
||||
void deviceAdded(const QString &udi);
|
||||
void deviceRemoved(const QString &udi);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue