Changeset View
Changeset View
Standalone View
Standalone View
kioclient/kioclient.h
Show All 17 Lines | |||||
18 | 18 | | |||
19 | #ifndef __kioclient_h | 19 | #ifndef __kioclient_h | ||
20 | #define __kioclient_h | 20 | #define __kioclient_h | ||
21 | 21 | | |||
22 | #include <QApplication> | 22 | #include <QApplication> | ||
23 | #include <kio/udsentry.h> | 23 | #include <kio/udsentry.h> | ||
24 | 24 | | |||
25 | class QCommandLineParser; | 25 | class QCommandLineParser; | ||
26 | class QUrl; | | |||
27 | class KJob; | 26 | class KJob; | ||
28 | namespace KIO { class Job; } | 27 | namespace KIO { class Job; } | ||
29 | 28 | | |||
30 | class ClientApp : public QObject | 29 | class ClientApp : public QObject | ||
31 | { | 30 | { | ||
32 | Q_OBJECT | 31 | Q_OBJECT | ||
33 | public: | 32 | public: | ||
34 | ClientApp(); | 33 | ClientApp(); | ||
35 | 34 | | |||
36 | /** Parse command-line arguments and "do it" */ | 35 | /** Parse command-line arguments and "do it" */ | ||
37 | bool doIt(const QCommandLineParser& parser); | 36 | bool doIt(const QCommandLineParser& parser); | ||
38 | 37 | | |||
39 | private Q_SLOTS: | 38 | private Q_SLOTS: | ||
40 | void slotPrintData(KIO::Job *job, const QByteArray &data); | 39 | void slotPrintData(KIO::Job *job, const QByteArray &data); | ||
41 | void slotEntries(KIO::Job* job, const KIO::UDSEntryList& ); | 40 | void slotEntries(KIO::Job* job, const KIO::UDSEntryList& ); | ||
42 | void slotResult( KJob * ); | 41 | void slotResult( KJob * ); | ||
43 | void delayedQuit(); | 42 | void delayedQuit(); | ||
44 | void slotDialogCanceled(); | 43 | void slotDialogCanceled(); | ||
45 | 44 | | |||
46 | private: | 45 | private: | ||
47 | bool kde_open( const QUrl& url, const QString& mimeType, bool allowExec ); | 46 | bool kde_open( const QString& url, const QString& mimeType, bool allowExec); | ||
48 | bool doCopy( const QStringList& urls ); | 47 | bool doCopy( const QStringList& urls ); | ||
49 | bool doMove( const QStringList& urls ); | 48 | bool doMove( const QStringList& urls ); | ||
50 | bool doList( const QStringList& urls ); | 49 | bool doList( const QStringList& urls ); | ||
51 | bool doRemove( const QStringList& urls ); | 50 | bool doRemove( const QStringList& urls ); | ||
52 | 51 | | |||
53 | static bool m_ok; | 52 | static bool m_ok; | ||
54 | }; | 53 | }; | ||
55 | 54 | | |||
56 | #endif | 55 | #endif |