# -------------------------------------------------
# Project created by QtCreator 2009-03-22T14:53:52
# -------------------------------------------------
-QT += network script
+QT += network \
+ script
QT -= gui
TEMPLATE = lib
TARGET = anidbudpclient
}
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
-
DEFINES += ANIDBUDPCLIENT_LIBRARY
SOURCES += client.cpp \
abstractcommand.cpp \
authcommand.cpp \
rawcommand.cpp \
- mylistaddcommand.cpp \
+ mylistaddcommand.cpp \
logoutcommand.cpp \
uptimecommand.cpp \
- mylistcommand.cpp
+ mylistcommand.cpp \
+ hash.cpp \
+ hashproducer.cpp \
+ hashconsumer.cpp
HEADERS += client.h \
anidbudpclient_global.h \
abstractcommand.h \
mylistaddcommand.h \
logoutcommand.h \
uptimecommand.h \
- mylistcommand.h
-
+ mylistcommand.h \
+ hash.h \
+ hashproducer.h \
+ hashconsumer.h \
+ circularbuffer.h
CONV_HEADERS += include/AniDBUdpClient/Client \
- include/AniDBUdpClient/AbstractCommand \
- include/AniDBUdpClient/RawCommand \
- include/AniDBUdpClient/MyListCommand \
- include/AniDBUdpClient/MyListAddCommand \
- include/AniDBUdpClient/UptimeCommand
-
+ include/AniDBUdpClient/AbstractCommand \
+ include/AniDBUdpClient/RawCommand \
+ include/AniDBUdpClient/MyListCommand \
+ include/AniDBUdpClient/MyListAddCommand \
+ include/AniDBUdpClient/UptimeCommand \
+ include/AniDBUdpClient/Hash
include(../../lib/qtstatemachine/src/qtstatemachine.pri)
{
CLIENT_DESTROYED = -1,
UNKNOWN_REPLY = 0,
+
// POSITIVE 2XX
LOGIN_ACCEPTED = 200, //a
LOGIN_ACCEPTED_NEW_VER = 201, //a
};
Q_ENUMS(Error IdlePolicy ReplyCode State FileState);
+
+ namespace HashPrivate {
+ static const qint64 ED2K_PART_SIZE = 9728000;
+ }
}
#endif // ANIDBUDPCLIENT_GLOBAL_H