~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to extra/kipi-plugins/mediawiki/wmwindow.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-08-13 18:23:16 UTC
  • mfrom: (1.2.41)
  • Revision ID: package-import@ubuntu.com-20120813182316-mket5nnbld3zjaii
Tags: 4:2.8.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#ifndef WMWINDOW_H
26
26
#define WMWINDOW_H
27
27
 
28
 
// MediaWiki includes
29
 
 
30
 
#include <libmediawiki/login.h>
31
 
#include <libmediawiki/mediawiki.h>
32
 
 
33
28
// Local includes
34
29
 
35
30
#include "kptooldialog.h"
36
31
 
37
32
class QCloseEvent;
38
33
 
39
 
namespace KIPI
40
 
{
41
 
    class Interface;
42
 
}
 
34
class KJob;
43
35
 
44
 
using namespace KIPI;
45
36
using namespace KIPIPlugins;
46
 
using namespace mediawiki;
47
37
 
48
38
namespace KIPIWikiMediaPlugin
49
39
{
50
40
 
51
 
class WmWidget;
52
 
class WmLogin;
53
 
class WikiMediaJob;
54
 
 
55
41
class WMWindow : public KPToolDialog
56
42
{
57
43
    Q_OBJECT
62
48
    ~WMWindow();
63
49
 
64
50
    void reactivate();
 
51
    QString getImageCaption(const QString& fileName);
 
52
    bool prepareImageForUpload(const QString& imgPath, QString& caption);
65
53
 
66
54
private Q_SLOTS:
67
55
 
74
62
 
75
63
private:
76
64
 
 
65
    bool eventFilter(QObject* obj, QEvent* event);
77
66
    void closeEvent(QCloseEvent*);
78
67
    void readSettings();
79
68
    void saveSettings();
80
69
 
81
70
private:
82
71
 
83
 
    QString       m_tmpDir;
84
 
    QString       m_tmpPath;
85
 
    QString       m_login;
86
 
    QString       m_pass;
87
 
    QUrl          m_wiki;
88
 
 
89
 
    WmWidget*     m_widget;
90
 
    MediaWiki*    m_mediawiki;
91
 
 
92
 
    WmLogin*      m_dlgLoginExport;
93
 
    WikiMediaJob* m_uploadJob;
 
72
    class Private;
 
73
    Private* const d;
94
74
};
95
75
 
96
76
} // namespace KIPIWikiMediaPlugin