added p3FileLists service

This commit is contained in:
mr-alice 2016-07-20 15:28:55 -04:00
parent b31e396c2b
commit 3e20b9ddf7
3 changed files with 19 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#include <p3filelists.h> #include "file_sharing/p3filelists.h"
#include <retroshare/rsids.h> #include "retroshare/rsids.h"
#define P3FILELISTS_DEBUG() std::cerr << "p3FileLists: " ; #define P3FILELISTS_DEBUG() std::cerr << "p3FileLists: " ;

View File

@ -19,10 +19,12 @@
// The file lists are not directry updated. A FileListWatcher class is responsible for this // The file lists are not directry updated. A FileListWatcher class is responsible for this
// in every case. // in every case.
// //
#pragma once
#include <services/p3service.h> #include <services/p3service.h>
#include <pqi/p3cfgmgr.h> #include <pqi/p3cfgmgr.h>
class p3FileLists: public p3Service, public p3Config, public RsSharedFileService class p3FileLists: public p3Service, public p3Config, public RsSharedFileService
{ {
public: public:
typedef uint64_t EntryIndex ; // this should probably be defined elsewhere typedef uint64_t EntryIndex ; // this should probably be defined elsewhere

View File

@ -33,6 +33,20 @@ debug {
QMAKE_CXXFLAGS *= -g -fno-omit-frame-pointer QMAKE_CXXFLAGS *= -g -fno-omit-frame-pointer
} }
CONFIG += file_lists
file_lists {
HEADERS *= file_sharing/p3filelists.h \
file_sharing/hash_cache.h \
file_sharing/directory_storage.h \
file_sharing/directory_updater.h
SOURCES *= file_sharing/p3filelists.cc \
file_sharing/hash_cache.cc \
file_sharing/directory_storage.cc \
file_sharing/directory_updater.cc
}
dsdv { dsdv {
DEFINES *= SERVICES_DSDV DEFINES *= SERVICES_DSDV
HEADERS += services/p3dsdv.h \ HEADERS += services/p3dsdv.h \