~ubuntu-branches/ubuntu/maverick/bluedevil/maverick-proposed

« back to all changes in this revision

Viewing changes to src/actionplugins/sendfile/helper/sendfilewizard.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-08-07 09:04:19 UTC
  • Revision ID: james.westby@ubuntu.com-20100807090419-68k54ucso2htcf5z
Tags: upstream-1.0~rc2
ImportĀ upstreamĀ versionĀ 1.0~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (C) 2010 UFO Coders <info@ufocoders.com>
 
3
 
 
4
    This program is free software: you can redistribute it and/or modify
 
5
    it under the terms of the GNU General Public License as published by
 
6
    the Free Software Foundation, either version 3 of the License, or
 
7
    (at your option) any later version.
 
8
 
 
9
    This program is distributed in the hope that it will be useful,
 
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
    GNU General Public License for more details.
 
13
 
 
14
    You should have received a copy of the GNU General Public License
 
15
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
*/
 
17
 
 
18
 
 
19
#ifndef SENDFILEWIZARD_H
 
20
#define SENDFILEWIZARD_H
 
21
 
 
22
#include <QObject>
 
23
#include <QWizard>
 
24
#include "discoverwidget.h"
 
25
 
 
26
class WizardAgent;
 
27
class KFileWidget;
 
28
class ObexAgent;
 
29
class SendFilesJob;
 
30
namespace BlueDevil {
 
31
    class Device;
 
32
}
 
33
using namespace BlueDevil;
 
34
 
 
35
class SendFileWizard : public QWizard
 
36
{
 
37
Q_OBJECT
 
38
 
 
39
public:
 
40
    SendFileWizard(const QString &deviceUri);
 
41
    virtual ~SendFileWizard();
 
42
 
 
43
    virtual void done(int result);
 
44
 
 
45
    void setFileWidget(KFileWidget *);
 
46
    KFileWidget * fileWidget();
 
47
 
 
48
    void setDevice(Device *device);
 
49
    Device* device();
 
50
 
 
51
    void startTransfer();
 
52
 
 
53
private Q_SLOTS:
 
54
    void wizardDone();
 
55
 
 
56
private:
 
57
    KFileWidget  *m_fileWidget;
 
58
    Device       *m_device;
 
59
    ObexAgent    *m_agent;
 
60
    SendFilesJob *m_job;
 
61
};
 
62
 
 
63
#endif // SENDFILEWIZARD_H