Commit 1bbcfd17 authored by hjk's avatar hjk Committed by Christian Kandeler
Browse files

madde: use IDevice base class for MaemoRemoteMounter



Change-Id: I01a0a735b129ce2aafda556a09002ed7a098c88a
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent ba6bd103
...@@ -45,9 +45,10 @@ ...@@ -45,9 +45,10 @@
#include <QTimer> #include <QTimer>
using namespace ProjectExplorer;
using namespace QSsh;
using namespace Qt4ProjectManager; using namespace Qt4ProjectManager;
using namespace RemoteLinux; using namespace RemoteLinux;
using namespace QSsh;
using namespace Utils; using namespace Utils;
namespace Madde { namespace Madde {
...@@ -67,7 +68,7 @@ MaemoRemoteMounter::~MaemoRemoteMounter() ...@@ -67,7 +68,7 @@ MaemoRemoteMounter::~MaemoRemoteMounter()
} }
void MaemoRemoteMounter::setConnection(SshConnection *connection, void MaemoRemoteMounter::setConnection(SshConnection *connection,
const LinuxDeviceConfiguration::ConstPtr &devConf) const IDevice::ConstPtr &devConf)
{ {
QTC_ASSERT(m_state == Inactive, return); QTC_ASSERT(m_state == Inactive, return);
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "maemomountspecification.h" #include "maemomountspecification.h"
#include <projectexplorer/devicesupport/idevice.h>
#include <utils/fileutils.h> #include <utils/fileutils.h>
#include <QList> #include <QList>
...@@ -44,18 +45,13 @@ ...@@ -44,18 +45,13 @@
QT_FORWARD_DECLARE_CLASS(QTimer) QT_FORWARD_DECLARE_CLASS(QTimer)
namespace QSsh { namespace QSsh {
class SftpChannel;
class SshConnection; class SshConnection;
class SshRemoteProcess; class SshRemoteProcess;
} }
namespace Utils { class PortList; } namespace Utils { class PortList; }
namespace Qt4ProjectManager { class Qt4BuildConfiguration; } namespace Qt4ProjectManager { class Qt4BuildConfiguration; }
namespace RemoteLinux { class RemoteLinuxUsedPortsGatherer; }
namespace RemoteLinux {
class LinuxDeviceConfiguration;
class RemoteLinuxUsedPortsGatherer;
}
namespace Madde { namespace Madde {
namespace Internal { namespace Internal {
...@@ -69,7 +65,7 @@ public: ...@@ -69,7 +65,7 @@ public:
// Must already be connected. // Must already be connected.
void setConnection(QSsh::SshConnection *connection, void setConnection(QSsh::SshConnection *connection,
const QSharedPointer<const RemoteLinux::LinuxDeviceConfiguration> &devConf); const ProjectExplorer::IDevice::ConstPtr &devConf);
void setBuildConfiguration(const Qt4ProjectManager::Qt4BuildConfiguration *bc); void setBuildConfiguration(const Qt4ProjectManager::Qt4BuildConfiguration *bc);
void addMountSpecification(const MaemoMountSpecification &mountSpec, void addMountSpecification(const MaemoMountSpecification &mountSpec,
...@@ -124,7 +120,7 @@ private: ...@@ -124,7 +120,7 @@ private:
}; };
QSsh::SshConnection *m_connection; QSsh::SshConnection *m_connection;
QSharedPointer<const RemoteLinux::LinuxDeviceConfiguration> m_devConf; ProjectExplorer::IDevice::ConstPtr m_devConf;
QList<MountInfo> m_mountSpecs; QList<MountInfo> m_mountSpecs;
QSharedPointer<QSsh::SshRemoteProcess> m_mountProcess; QSharedPointer<QSsh::SshRemoteProcess> m_mountProcess;
QSharedPointer<QSsh::SshRemoteProcess> m_unmountProcess; QSharedPointer<QSsh::SshRemoteProcess> m_unmountProcess;
......
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