~afiestas/samba-mounter/master

« back to all changes in this revision

Viewing changes to src/mountinfo.h

  • Committer: Aleix Pol
  • Date: 2016-07-29 15:17:55 UTC
  • mfrom: (64.1.44)
  • Revision ID: git-v1:0d1a35f9e5d3353972641a4fd20349e2b8e85a00
Merge branch 'frameworks'

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include "ui_mount.h"
23
23
 
24
 
#include <QtGui/QWidget>
 
24
#include <QWidget>
 
25
#include <KIO/AuthInfo>
 
26
#include <KConfigGroup>
25
27
 
26
28
class QProcess;
27
29
class KPixmapSequenceOverlayPainter;
 
30
class OrgKdeKPasswdServerInterface;
28
31
class MountInfo : public QWidget, Ui::MountInfo
29
32
{
30
33
    Q_OBJECT
34
37
            Ok      = 2,
35
38
            Fail    = 4
36
39
        };
37
 
        explicit MountInfo(KConfigGroup config, QWidget* parent = 0);
 
40
        explicit MountInfo(OrgKdeKPasswdServerInterface* interface, KConfigGroup config, QWidget* parent = 0);
38
41
        virtual ~MountInfo();
39
42
 
40
43
        QString id() const;
41
44
        void setConfigGroup(const QString &name);
42
45
 
43
46
    public Q_SLOTS:
44
 
        void checkValidSamba(const KUrl &url);
 
47
        void checkValidSamba(const QUrl &url);
45
48
        void checkValidSamba(const QString &url);
46
49
        void nameResolveFinished(int status);
47
50
 
48
 
        bool checkMountPoint(const KUrl &url);
 
51
        bool checkMountPoint(const QUrl &url);
49
52
        bool checkMountPoint(const QString& name);
50
53
 
51
54
        void setResult(QLabel *lbl, Status status);
68
71
        void checkValidHost(const QString &url);
69
72
 
70
73
    private:
 
74
        void authInfoReceived(qlonglong requestId, qlonglong seqNr, const KIO::AuthInfo & info);
71
75
        bool m_share, m_mount, m_editMode;
72
76
        QProcess *m_process;
73
77
        KConfigGroup m_config;
74
78
        KPixmapSequenceOverlayPainter *m_painter1;
75
79
        KPixmapSequenceOverlayPainter *m_painter2;
 
80
        OrgKdeKPasswdServerInterface* m_interface;
76
81
 
77
82
        QString m_id;
78
83
        QString m_host;
83
88
        QString m_mountName;
84
89
};
85
90
 
86
 
#endif //MOUNT_INFO_H
 
 
b'\\ No newline at end of file'
 
91
#endif //MOUNT_INFO_H