3
* KBluetooth4 - KDE Bluetooth Framework
5
* Copyright (C) 2008 Tom Patzig <tpatzig@suse.de>
7
* This file is part of kbluetooth4.
9
* kbluetooth4 is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* kbluetooth4 is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with kbluetooth4; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
33
class ObexSession : public QObject
38
ObexSession(QObject* parent, const QString& addr, const QString& service);
45
void changeCurrentFolder(const QString& path);
46
void changeCurrentFolderBackward();
47
void changeCurrentFolderToRoot();
48
const QString& getCurrentPath();
49
void copyRemoteFile(const QString& remote_filename, const QString& local_path);
50
void createFolder(const QString& folder_name);
51
QMap<QString,QVariant> retrieveFolderListing();
52
QMap<QString,QVariant> getCapability();
53
void sendFile(const QString& local_path);
54
void deleteRemoteFile(const QString& remote_filename);
55
QMap<QString,QVariant> getTransferInfo();
62
QDBusInterface* manager;
63
QDBusInterface* session;
71
void sessionCreated(QDBusObjectPath);
72
void sessionCreatedError(QDBusError);
76
void slotDisconnected();
78
void slotTransferStarted(const QString& filename, const QString& local_path, qulonglong total_bytes);
79
void slotTransferProgress(qulonglong bytes_transferred);
80
void slotTransferCompleted();
81
void slotErrorOccurred(const QString& error_name, const QString& error_message);
90
void transferStarted(const QString& filename, const QString& local_path, qulonglong total_bytes);
91
void transferProgress(qulonglong bytes_transferred);
92
void transferCompleted();
93
void errorOccurred(const QString& error_name, const QString& error_message);