summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/obexftpdialog.h
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/obexftpdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/obexftpdialog.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/obexftpdialog.h b/noncore/net/opietooth/manager/obexftpdialog.h
new file mode 100644
index 0000000..b13efe5
--- a/dev/null
+++ b/noncore/net/opietooth/manager/obexftpdialog.h
@@ -0,0 +1,66 @@
1/* $Id$ */
2/* OBEX file browser dialog */
3/***************************************************************************
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 ***************************************************************************/
11/*
12 * This code uses and is based on ObexFTP project code: http://triq.net/obexftp/
13 */
14#ifndef _OBEXFTPDIALOG_H_
15#define _OBEXFTPDIALOG_H_
16#include "obexftpdialogbase.h"
17#include <qstring.h>
18#include <obexftp.h>
19#include <uuid.h>
20#include <client.h>
21#include <opie2/ofileselector.h>
22#include <qlayout.h>
23namespace OpieTooth {
24 class ObexFtpDialog : public ObexFtpDialogBase {
25 Q_OBJECT
26 public:
27 ObexFtpDialog(const QString& device = 0, int port = 0,
28 QWidget* parent = 0, const char* name = 0, bool modal = TRUE,
29 WFlags fl = 0);
30 ~ObexFtpDialog();
31 void log(QString str);
32 void log(QCString str);
33 void log(const char* str);
34 void log(QString& str);
35 void incProgress();
36 void doneProgress();
37 protected:
38 int cli_connect_uuid(const uint8_t *uuid, int uuid_len);
39 int errBox(QCString msg); //Error message box
40 int errBox(QString msg); //Error message box
41 int errBox(const char* msg); //Error message box
42 void status(QCString msg); //Text in the status bar
43 void status(QString msg); //Text in the status bar
44 void status(const char* msg); //Text in the status bar
45 protected:
46 QString m_device; //device MAC address
47 int m_port; //port
48 int transport; //transport type
49 bool use_conn;
50 bool use_path;
51 obexftp_client_t* client; //Obex ftp client handler
52 QString curdir; //Current directory on device
53 QString localCurdir; //Local current directory
54 QString file2get; //Remote file name
55 QString local; //Local file name
56 int progressStatus; //Progress status
57 Opie::Ui::OFileSelector* destFile; //Destination file or directory
58 QVBoxLayout* localLayout; //Window layout
59 private slots:
60 void slotBrowse();
61 void slotCd(QListViewItem* item);
62 void getFile();
63 void updateDir(const QString& newdir);
64 };
65};
66#endif