summaryrefslogtreecommitdiff
authorzecke <zecke>2002-09-26 17:49:53 (UTC)
committer zecke <zecke>2002-09-26 17:49:53 (UTC)
commit50edb4865c45aa51874b2284d12939bf4fe69041 (patch) (unidiff)
treed9c1ceb78ac4d51719ab6375c346e7228b2a81fa
parentdf3a5b9afa34fa45d06e211f415f74c38017a917 (diff)
downloadopie-50edb4865c45aa51874b2284d12939bf4fe69041.zip
opie-50edb4865c45aa51874b2284d12939bf4fe69041.tar.gz
opie-50edb4865c45aa51874b2284d12939bf4fe69041.tar.bz2
fix unused variable warnings
Added IOLayer* layer() to file_transfer.h
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/file_layer.cpp7
-rw-r--r--noncore/apps/opie-console/file_layer.h6
-rw-r--r--noncore/apps/opie-console/io_layer.cpp8
-rw-r--r--noncore/apps/opie-console/main.cpp9
-rw-r--r--noncore/apps/opie-console/opie-console.pro4
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
@@ -1,8 +1,13 @@
1#include "file_layer.h" 1#include "file_layer.h"
2 2
3FileTransferLayer::FileTransferLayer(IOLayer *layer) { 3FileTransferLayer::FileTransferLayer(IOLayer *layer)
4 : QObject(), m_layer( layer )
5{
4} 6}
5 7
6FileTransferLayer::~FileTransferLayer() { 8FileTransferLayer::~FileTransferLayer() {
7} 9}
10IOLayer* 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
@@ -24,27 +24,33 @@ public slots:
24 24
25 /** 25 /**
26 * convience method 26 * convience method
27 */ 27 */
28 virtual void sendFile( const QFile& ) = 0; 28 virtual void sendFile( const QFile& ) = 0;
29 29
30signals: 30signals:
31 /** 31 /**
32 * sent the file 32 * sent the file
33 */ 33 */
34 void sent(); 34 void sent();
35 35
36 /** 36 /**
37 * an error occured 37 * an error occured
38 */ 38 */
39 39
40 void error( int, const QString& ); 40 void error( int, const QString& );
41 41
42 /* 42 /*
43 * 100 == done 43 * 100 == done
44 * 44 *
45 */ 45 */
46 void progress( const QString& file, int progress ); 46 void progress( const QString& file, int progress );
47 47
48protected:
49 IOLayer* layer();
50
51private:
52 IOLayer* m_layer;
53
48}; 54};
49 55
50#endif 56#endif
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
@@ -1,10 +1,14 @@
1#include "io_layer.h" 1#include "io_layer.h"
2 2
3IOLayer::IOLayer() { 3IOLayer::IOLayer()
4 : QObject()
5{
4} 6}
5 7
6IOLayer::IOLayer(const Config &config) { 8IOLayer::IOLayer(const Config &)
9 : QObject()
10{
7} 11}
8 12
9IOLayer::~IOLayer() { 13IOLayer::~IOLayer() {
10} 14}
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
@@ -1,5 +1,14 @@
1#include <qpe/qpeapplication.h> 1#include <qpe/qpeapplication.h>
2 2
3#include <mainwindow.h>
4
3int main(int argc, char **argv) { 5int 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;
5} 14}
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
@@ -1,11 +1,11 @@
1TEMPLATE = app 1TEMPLATE = app
2CONFIG = qt warn_on release 2CONFIG = qt warn_on release
3DESTDIR = $(OPIEDIR)/bin 3DESTDIR = $(OPIEDIR)/bin
4HEADERS = io_layer.h io_serial.h file_layer.h 4HEADERS = io_layer.h io_serial.h file_layer.h
5SOURCES = io_layer.cpp io_serial.cpp file_layer.cpp 5SOURCES = io_layer.cpp io_serial.cpp file_layer.cpp main.cpp
6INTERFACES = 6INTERFACES =
7INCLUDEPATH += $(OPIEDIR)/include 7INCLUDEPATH += $(OPIEDIR)/include
8DEPENDPATH += $(OPIEDIR)/include 8DEPENDPATH += $(OPIEDIR)/include
9LIBS += -lqpe -lopie 9LIBS += -lqpe -lopie
10TARGET = sysinfo 10TARGET = opie-console
11 11