Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completed conversion to libkovanserial
- Loading branch information
Showing
65 changed files
with
1,680 additions
and
1,222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,38 @@ | |||
#ifndef _MANUAL_TARGET_SELECTOR_HPP_ | |||
#define _MANUAL_TARGET_SELECTOR_HPP_ | |||
|
|||
#include <QDialog> | |||
|
|||
#include "target.hpp" | |||
|
|||
namespace Ui | |||
{ | |||
class ManualTargetDialog; | |||
} | |||
|
|||
namespace Kiss | |||
{ | |||
namespace Target | |||
{ | |||
class InterfaceModel; | |||
} | |||
|
|||
namespace Dialog | |||
{ | |||
class ManualTarget : public QDialog | |||
{ | |||
Q_OBJECT | |||
public: | |||
ManualTarget(QWidget *parent = 0); | |||
~ManualTarget(); | |||
|
|||
Kiss::Target::TargetPtr target() const; | |||
|
|||
private: | |||
Ui::ManualTargetDialog *ui; | |||
Kiss::Target::InterfaceModel *m_model; | |||
}; | |||
} | |||
} | |||
|
|||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
#ifndef _EXTERNAL_TOOLS_HPP_ | |||
#define _EXTERNAL_TOOLS_HPP_ | |||
|
|||
#include <QString> | |||
#include <QSettings> | |||
|
|||
namespace Kiss | |||
{ | |||
class ExternalTools | |||
{ | |||
public: | |||
void setTool(const QString &name, const QString &path); | |||
QString tool(const QString &name); | |||
void removeTool(const QString &name); | |||
|
|||
bool launch(const QString &name); | |||
|
|||
private: | |||
QSettings m_settings; | |||
}; | |||
} | |||
|
|||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,36 @@ | |||
#ifndef _COMMUNICATION_QUEUE_MODEL_HPP_ | |||
#define _COMMUNICATION_QUEUE_MODEL_HPP_ | |||
|
|||
#include "communication_queue.hpp" | |||
|
|||
#include <QStandardItemModel> | |||
|
|||
namespace Kiss | |||
{ | |||
namespace Target | |||
{ | |||
class CommunicationManager; | |||
|
|||
class CommunicationQueueModel : public QStandardItemModel | |||
{ | |||
Q_OBJECT | |||
public: | |||
CommunicationQueueModel(CommunicationManager *manager, QObject *parent); | |||
~CommunicationQueueModel(); | |||
|
|||
CommunicationManager *manager() const; | |||
|
|||
private slots: | |||
void admitted(const CommunicationEntryPtr &entry); | |||
void began(const CommunicationEntryPtr &entry); | |||
void progress(const CommunicationEntryPtr &entry, double success); | |||
void finished(const CommunicationEntryPtr &entry, bool success); | |||
void queueFinished(); | |||
|
|||
private: | |||
CommunicationManager *m_manager; | |||
}; | |||
} | |||
} | |||
|
|||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
#ifndef _MAIN_RESPONDER_HPP_ | |||
#define _MAIN_RESPONDER_HPP_ | |||
|
|||
#include "target_responder.hpp" | |||
|
|||
namespace Kiss | |||
{ | |||
namespace Widget | |||
{ | |||
class MainWindow; | |||
} | |||
|
|||
namespace Target | |||
{ | |||
class MainResponder : public Responder | |||
{ | |||
public: | |||
MainResponder(Widget::MainWindow *mainWindow); | |||
virtual ~MainResponder(); | |||
|
|||
virtual void response(Target *target, const Response &response); | |||
|
|||
private: | |||
Widget::MainWindow *m_mainWindow; | |||
}; | |||
} | |||
} | |||
|
|||
#endif |
Oops, something went wrong.