diff options
Diffstat (limited to 'src/libktorrent/interfaces')
| -rw-r--r-- | src/libktorrent/interfaces/CMakeLists.txt | 16 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/coreinterface.h | 3 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/exitoperation.h | 3 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/filetreediritem.h | 3 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/filetreeitem.h | 3 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/functions.h | 7 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/guiinterface.h | 3 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/ipblockinginterface.h | 4 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/logmonitorinterface.h | 4 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/monitorinterface.h | 3 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/peersource.h | 3 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/plugin.h | 3 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/prefpageinterface.h | 3 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/torrentfileinterface.h | 3 | ||||
| -rw-r--r-- | src/libktorrent/interfaces/torrentinterface.h | 8 |
15 files changed, 50 insertions, 19 deletions
diff --git a/src/libktorrent/interfaces/CMakeLists.txt b/src/libktorrent/interfaces/CMakeLists.txt new file mode 100644 index 0000000..e2b6e12 --- /dev/null +++ b/src/libktorrent/interfaces/CMakeLists.txt @@ -0,0 +1,16 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### interfaces library (static) + +tde_add_library( interfaces STATIC_PIC AUTOMOC + SOURCES + plugin.cpp coreinterface.cpp guiinterface.cpp prefpageinterface.cpp torrentinterface.cpp + monitorinterface.cpp chunkdownloadinterface.cpp peerinterface.cpp torrentfileinterface.cpp + filetreeitem.cpp filetreediritem.cpp functions.cpp logmonitorinterface.cpp + ipblockinginterface.cpp trackerslist.cpp peersource.cpp exitoperation.cpp +) diff --git a/src/libktorrent/interfaces/coreinterface.h b/src/libktorrent/interfaces/coreinterface.h index f42c966..6e779f9 100644 --- a/src/libktorrent/interfaces/coreinterface.h +++ b/src/libktorrent/interfaces/coreinterface.h @@ -24,6 +24,7 @@ #include <tqobject.h> #include <util/constants.h> #include <torrent/queuemanager.h> +#include <libktorrent_export.h> ///Stats struct struct CurrentStats @@ -50,7 +51,7 @@ namespace kt * the applications core, the core is responsible for managing all * TorrentControl objects. */ - class CoreInterface : public TQObject + class LIBKTORRENT_EXPORT CoreInterface : public TQObject { TQ_OBJECT diff --git a/src/libktorrent/interfaces/exitoperation.h b/src/libktorrent/interfaces/exitoperation.h index e9c0ae5..655b344 100644 --- a/src/libktorrent/interfaces/exitoperation.h +++ b/src/libktorrent/interfaces/exitoperation.h @@ -22,6 +22,7 @@ #include <tqobject.h> #include <tdeio/job.h> +#include <libktorrent_export.h> namespace kt { @@ -35,7 +36,7 @@ namespace kt * ExitOperation's can be used in combination with a WaitJob, to wait for a certain amount of time * to give serveral ExitOperation's the time time to finish up. */ - class ExitOperation : public TQObject + class LIBKTORRENT_EXPORT ExitOperation : public TQObject { TQ_OBJECT diff --git a/src/libktorrent/interfaces/filetreediritem.h b/src/libktorrent/interfaces/filetreediritem.h index 6b35031..6f60070 100644 --- a/src/libktorrent/interfaces/filetreediritem.h +++ b/src/libktorrent/interfaces/filetreediritem.h @@ -23,6 +23,7 @@ #include <tdelistview.h> #include <util/constants.h> #include <util/ptrmap.h> +#include <libktorrent_export.h> namespace kt { @@ -44,7 +45,7 @@ namespace kt * * Directory item the file tree showing the files in a multifile torrent */ - class FileTreeDirItem : public TQCheckListItem + class LIBKTORRENT_EXPORT FileTreeDirItem : public TQCheckListItem { protected: TQString name; diff --git a/src/libktorrent/interfaces/filetreeitem.h b/src/libktorrent/interfaces/filetreeitem.h index 5cc17f9..af7759e 100644 --- a/src/libktorrent/interfaces/filetreeitem.h +++ b/src/libktorrent/interfaces/filetreeitem.h @@ -22,6 +22,7 @@ #include <tdelistview.h> #include <util/constants.h> +#include <libktorrent_export.h> using namespace bt; @@ -40,7 +41,7 @@ namespace kt * This is derived from TQCheckListItem, if the user checks or unchecks the box, * wether or not to download a file will be changed. */ - class FileTreeItem : public TQCheckListItem + class LIBKTORRENT_EXPORT FileTreeItem : public TQCheckListItem { protected: TQString name; diff --git a/src/libktorrent/interfaces/functions.h b/src/libktorrent/interfaces/functions.h index 4ffe9a9..4836a6f 100644 --- a/src/libktorrent/interfaces/functions.h +++ b/src/libktorrent/interfaces/functions.h @@ -22,6 +22,7 @@ #include <tqstring.h> #include <util/constants.h> +#include <libktorrent_export.h> namespace kt { @@ -29,9 +30,9 @@ namespace kt const double TO_MEG = (1024.0 * 1024.0); const double TO_GIG = (1024.0 * 1024.0 * 1024.0); - TQString BytesToString(bt::Uint64 bytes,int precision = -1); - TQString KBytesPerSecToString(double speed,int precision = 1); - TQString DurationToString(bt::Uint32 nsecs); + LIBKTORRENT_EXPORT TQString BytesToString(bt::Uint64 bytes,int precision = -1); + LIBKTORRENT_EXPORT TQString KBytesPerSecToString(double speed,int precision = 1); + LIBKTORRENT_EXPORT TQString DurationToString(bt::Uint32 nsecs); template<class T> int CompareVal(T a,T b) { diff --git a/src/libktorrent/interfaces/guiinterface.h b/src/libktorrent/interfaces/guiinterface.h index 69d168b..d94559e 100644 --- a/src/libktorrent/interfaces/guiinterface.h +++ b/src/libktorrent/interfaces/guiinterface.h @@ -21,6 +21,7 @@ #define KTGUIINTERFACE_H #include <tqptrlist.h> +#include <libktorrent_export.h> class TQWidget; class TQIconSet; @@ -77,7 +78,7 @@ namespace kt * * This interface allows plugins and others to modify the GUI. */ - class GUIInterface + class LIBKTORRENT_EXPORT GUIInterface { TQPtrList<ViewListener> listeners; public: diff --git a/src/libktorrent/interfaces/ipblockinginterface.h b/src/libktorrent/interfaces/ipblockinginterface.h index 236a549..87a544c 100644 --- a/src/libktorrent/interfaces/ipblockinginterface.h +++ b/src/libktorrent/interfaces/ipblockinginterface.h @@ -22,6 +22,8 @@ #ifndef IPBLOCKINGINTERFACE_H #define IPBLOCKINGINTERFACE_H +#include <libktorrent_export.h> + class TQString; namespace kt @@ -30,7 +32,7 @@ namespace kt * @author Ivan Vasic * @brief Interface for IPBlocklist to communicate with IPBlockingPlugin */ - class IPBlockingInterface + class LIBKTORRENT_EXPORT IPBlockingInterface { public: IPBlockingInterface(); diff --git a/src/libktorrent/interfaces/logmonitorinterface.h b/src/libktorrent/interfaces/logmonitorinterface.h index 54e1a21..7ee6498 100644 --- a/src/libktorrent/interfaces/logmonitorinterface.h +++ b/src/libktorrent/interfaces/logmonitorinterface.h @@ -20,6 +20,8 @@ #ifndef KTLOGMONITORINTERFACE_H #define KTLOGMONITORINTERFACE_H +#include <libktorrent_export.h> + class TQString; namespace kt @@ -32,7 +34,7 @@ namespace kt * This class is an interface for all classes which want to know, * what is written to the log. */ - class LogMonitorInterface + class LIBKTORRENT_EXPORT LogMonitorInterface { public: LogMonitorInterface(); diff --git a/src/libktorrent/interfaces/monitorinterface.h b/src/libktorrent/interfaces/monitorinterface.h index a199800..0f864de 100644 --- a/src/libktorrent/interfaces/monitorinterface.h +++ b/src/libktorrent/interfaces/monitorinterface.h @@ -20,6 +20,7 @@ #ifndef KTMONITORINTERFACE_H #define KTMONITORINTERFACE_H +#include <libktorrent_export.h> namespace kt { @@ -33,7 +34,7 @@ namespace kt * Classes who want to keep track of all peers currently connected for a given * torrent and all chunks who are currently downloading can implement this interface. */ - class MonitorInterface + class LIBKTORRENT_EXPORT MonitorInterface { public: MonitorInterface(); diff --git a/src/libktorrent/interfaces/peersource.h b/src/libktorrent/interfaces/peersource.h index 0b8a852..a6f2e79 100644 --- a/src/libktorrent/interfaces/peersource.h +++ b/src/libktorrent/interfaces/peersource.h @@ -23,6 +23,7 @@ #include <tqobject.h> #include <tqvaluelist.h> #include <util/constants.h> +#include <libktorrent_export.h> namespace bt { @@ -47,7 +48,7 @@ namespace kt * for torrents. PeerSources should work independently and should emit a signal when they * have peers ready. */ - class PeerSource : public TQObject + class LIBKTORRENT_EXPORT PeerSource : public TQObject { TQ_OBJECT diff --git a/src/libktorrent/interfaces/plugin.h b/src/libktorrent/interfaces/plugin.h index c2446e9..1c185cc 100644 --- a/src/libktorrent/interfaces/plugin.h +++ b/src/libktorrent/interfaces/plugin.h @@ -21,6 +21,7 @@ #define KTPLUGIN_H #include <ktversion.h> +#include <libktorrent_export.h> #include <tdeparts/plugin.h> namespace bt @@ -45,7 +46,7 @@ namespace kt * (setting an int to 0 is ok, creating widgets isn't). * Only the name, author and description may be set in the constructor. */ - class Plugin : public KParts::Plugin + class LIBKTORRENT_EXPORT Plugin : public KParts::Plugin { TQ_OBJECT diff --git a/src/libktorrent/interfaces/prefpageinterface.h b/src/libktorrent/interfaces/prefpageinterface.h index 850a344..665cdac 100644 --- a/src/libktorrent/interfaces/prefpageinterface.h +++ b/src/libktorrent/interfaces/prefpageinterface.h @@ -21,6 +21,7 @@ #define PREFPAGEINTERFACE_H #include <tqpixmap.h> +#include <libktorrent_export.h> class TQWidget; @@ -32,7 +33,7 @@ namespace kt * * This interface allows plugins and others to add their own pages in Configuration dialog */ - class PrefPageInterface + class LIBKTORRENT_EXPORT PrefPageInterface { public: /** diff --git a/src/libktorrent/interfaces/torrentfileinterface.h b/src/libktorrent/interfaces/torrentfileinterface.h index c9381a9..2590fa7 100644 --- a/src/libktorrent/interfaces/torrentfileinterface.h +++ b/src/libktorrent/interfaces/torrentfileinterface.h @@ -23,6 +23,7 @@ #include <tqobject.h> #include <tqstring.h> #include <util/constants.h> +#include <libktorrent_export.h> namespace kt { @@ -41,7 +42,7 @@ namespace kt * * This class is the interface for a file in a multifile torrent. */ - class TorrentFileInterface : public TQObject + class LIBKTORRENT_EXPORT TorrentFileInterface : public TQObject { TQ_OBJECT diff --git a/src/libktorrent/interfaces/torrentinterface.h b/src/libktorrent/interfaces/torrentinterface.h index 92b5f2c..464a640 100644 --- a/src/libktorrent/interfaces/torrentinterface.h +++ b/src/libktorrent/interfaces/torrentinterface.h @@ -22,9 +22,9 @@ #include <tqobject.h> #include <util/constants.h> -#include <interfaces/trackerslist.h> - #include <kurl.h> +#include <interfaces/trackerslist.h> +#include <libktorrent_export.h> namespace bt { @@ -179,7 +179,7 @@ namespace kt * This class is the interface for an object which controls the * up- and download of one torrent. */ - class TorrentInterface : public TQObject + class LIBKTORRENT_EXPORT TorrentInterface : public TQObject { TQ_OBJECT @@ -503,7 +503,7 @@ namespace kt * @param stats The stats of the torrent * @return The share ratio */ - float ShareRatio(const TorrentStats & stats); + LIBKTORRENT_EXPORT float ShareRatio(const TorrentStats & stats); } |
