Changeset View
Changeset View
Standalone View
Standalone View
src/dcc/transfermanager.h
Show All 38 Lines | 36 | { | |||
---|---|---|---|---|---|
39 | class TransferSend; | 39 | class TransferSend; | ||
40 | class Chat; | 40 | class Chat; | ||
41 | 41 | | |||
42 | class TransferManager : public QObject | 42 | class TransferManager : public QObject | ||
43 | { | 43 | { | ||
44 | Q_OBJECT | 44 | Q_OBJECT | ||
45 | 45 | | |||
46 | public: | 46 | public: | ||
47 | explicit TransferManager(QObject* parent = 0); | 47 | explicit TransferManager(QObject* parent = nullptr); | ||
48 | ~TransferManager(); | 48 | ~TransferManager() override; | ||
49 | 49 | | |||
50 | Q_SIGNALS: | 50 | Q_SIGNALS: | ||
51 | /* | 51 | /* | ||
52 | * The status of the item is DccTransfer::Configuring when this signal is emitted. | 52 | * The status of the item is DccTransfer::Configuring when this signal is emitted. | ||
53 | */ | 53 | */ | ||
54 | void newTransferAdded(Konversation::DCC::Transfer* transfer); | 54 | void newTransferAdded(Konversation::DCC::Transfer* transfer); | ||
55 | /* | 55 | /* | ||
56 | * The status of the item is DccTransfer::Queued when this signal is emitted. | 56 | * The status of the item is DccTransfer::Queued when this signal is emitted. | ||
Show All 29 Lines | 62 | public: | |||
86 | bool isLocalFileInWritingProcess(const QUrl &localUrl) const; | 86 | bool isLocalFileInWritingProcess(const QUrl &localUrl) const; | ||
87 | 87 | | |||
88 | int generateReverseTokenNumber(); | 88 | int generateReverseTokenNumber(); | ||
89 | 89 | | |||
90 | bool hasActiveTransfers(); | 90 | bool hasActiveTransfers(); | ||
91 | bool hasActiveChats(); | 91 | bool hasActiveChats(); | ||
92 | 92 | | |||
93 | UPnP::UPnPRouter *getUPnPRouter(); | 93 | UPnP::UPnPRouter *getUPnPRouter(); | ||
94 | void startupUPnP(void); | 94 | void startupUPnP(); | ||
95 | void shutdownUPnP(void); | 95 | void shutdownUPnP(); | ||
96 | 96 | | |||
97 | private: | 97 | private: | ||
98 | /* | 98 | /* | ||
99 | * initTransfer() does the common jobs for newDownload() and newUpload() | 99 | * initTransfer() does the common jobs for newDownload() and newUpload() | ||
100 | */ | 100 | */ | ||
101 | void initTransfer(Transfer* transfer); | 101 | void initTransfer(Transfer* transfer); | ||
102 | 102 | | |||
103 | private Q_SLOTS: | 103 | private Q_SLOTS: | ||
Show All 24 Lines |