-rw-r--r-- | noncore/apps/opie-console/file_layer.cpp | 7 | ||||
-rw-r--r-- | noncore/apps/opie-console/file_layer.h | 6 | ||||
-rw-r--r-- | noncore/apps/opie-console/io_layer.cpp | 8 | ||||
-rw-r--r-- | noncore/apps/opie-console/main.cpp | 9 | ||||
-rw-r--r-- | noncore/apps/opie-console/opie-console.pro | 4 |
5 files changed, 29 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/file_layer.cpp b/noncore/apps/opie-console/file_layer.cpp index 3be5f10..3ff85af 100644 --- a/noncore/apps/opie-console/file_layer.cpp +++ b/noncore/apps/opie-console/file_layer.cpp | |||
@@ -2,3 +2,5 @@ | |||
2 | 2 | ||
3 | FileTransferLayer::FileTransferLayer(IOLayer *layer) { | 3 | FileTransferLayer::FileTransferLayer(IOLayer *layer) |
4 | : QObject(), m_layer( layer ) | ||
5 | { | ||
4 | } | 6 | } |
@@ -7,2 +9,5 @@ FileTransferLayer::~FileTransferLayer() { | |||
7 | } | 9 | } |
10 | IOLayer* FileTransferLayer::layer() { | ||
11 | return m_layer; | ||
12 | } | ||
8 | 13 | ||
diff --git a/noncore/apps/opie-console/file_layer.h b/noncore/apps/opie-console/file_layer.h index 75fd94b..035e125 100644 --- a/noncore/apps/opie-console/file_layer.h +++ b/noncore/apps/opie-console/file_layer.h | |||
@@ -47,2 +47,8 @@ signals: | |||
47 | 47 | ||
48 | protected: | ||
49 | IOLayer* layer(); | ||
50 | |||
51 | private: | ||
52 | IOLayer* m_layer; | ||
53 | |||
48 | }; | 54 | }; |
diff --git a/noncore/apps/opie-console/io_layer.cpp b/noncore/apps/opie-console/io_layer.cpp index 8da5886..ca1deb8 100644 --- a/noncore/apps/opie-console/io_layer.cpp +++ b/noncore/apps/opie-console/io_layer.cpp | |||
@@ -2,6 +2,10 @@ | |||
2 | 2 | ||
3 | IOLayer::IOLayer() { | 3 | IOLayer::IOLayer() |
4 | : QObject() | ||
5 | { | ||
4 | } | 6 | } |
5 | 7 | ||
6 | IOLayer::IOLayer(const Config &config) { | 8 | IOLayer::IOLayer(const Config &) |
9 | : QObject() | ||
10 | { | ||
7 | } | 11 | } |
diff --git a/noncore/apps/opie-console/main.cpp b/noncore/apps/opie-console/main.cpp index 7594174..cf8bf05 100644 --- a/noncore/apps/opie-console/main.cpp +++ b/noncore/apps/opie-console/main.cpp | |||
@@ -2,3 +2,12 @@ | |||
2 | 2 | ||
3 | #include <mainwindow.h> | ||
4 | |||
3 | int main(int argc, char **argv) { | 5 | int main(int argc, char **argv) { |
6 | QPEApplication app( argc, argv ); | ||
7 | MainWindow* mw = new MainWindow(); | ||
8 | app.setMainWidget( mw ); | ||
9 | |||
10 | app.exec(); | ||
11 | |||
12 | delete mw; | ||
4 | return 0; | 13 | return 0; |
diff --git a/noncore/apps/opie-console/opie-console.pro b/noncore/apps/opie-console/opie-console.pro index 4ce11a9..5b6fdc3 100644 --- a/noncore/apps/opie-console/opie-console.pro +++ b/noncore/apps/opie-console/opie-console.pro | |||
@@ -4,3 +4,3 @@ DESTDIR = $(OPIEDIR)/bin | |||
4 | HEADERS = io_layer.h io_serial.h file_layer.h | 4 | HEADERS = io_layer.h io_serial.h file_layer.h |
5 | SOURCES = io_layer.cpp io_serial.cpp file_layer.cpp | 5 | SOURCES = io_layer.cpp io_serial.cpp file_layer.cpp main.cpp |
6 | INTERFACES = | 6 | INTERFACES = |
@@ -9,3 +9,3 @@ DEPENDPATH += $(OPIEDIR)/include | |||
9 | LIBS += -lqpe -lopie | 9 | LIBS += -lqpe -lopie |
10 | TARGET = sysinfo | 10 | TARGET = opie-console |
11 | 11 | ||