diff --git a/libretroshare/src/services/p3Qblog.h b/libretroshare/src/services/p3Qblog.h index 6554ec6c1..87b6e7c8b 100644 --- a/libretroshare/src/services/p3Qblog.h +++ b/libretroshare/src/services/p3Qblog.h @@ -28,7 +28,7 @@ #include -#include +#include #include #include @@ -36,39 +36,47 @@ #include "pqi/pqi.h" #include "pqi/pqiindic.h" +#include "dbase/cachestrapper.h" #include "services/p3service.h" -//#include "serialiser/rsqblogitems" #include "util/rsthreads.h" -/*! - * blog records to be accessed only by user! - */ - class rsQBlogMsgs - { - public: - - std::multimap blogs; // blogs recorded - }; - - - /*! - * contains information that defines rsQblogs attribute space - */ - class rsQBlogInfo +/*! + * contains definitions of the interface and blog information to be manipulated + */ + class p3Qblog : p3Service, RsQblog { public: + p3Qblog(); + virtual ~p3Qblog (); - list filterList; /// contains the list of ids usr only wants to see - bool filterSwitch; /// determines whether filter is activated or not + virtual bool setStatus(std::string &status); + virtual bool getStatus(std::string &status); + virtual bool setFilterSwitch(bool &filterSwitch); + virtual bool getFriendList(std::list &friendList); + virtual bool getFilterSwitch(void); + virtual bool addToFilter(std::string &usrId); + virtual bool removeFiltFriend(std::string &usrId); + virtual bool getProfile(std::string &usrId, std::string &favSong); + virtual bool setProfile(std::string &favSong); + virtual bool sendBlog(std::string &msg); + virtual bool getBlogs(std::map< std::string, std::multimap > &blogs); + + private: + + std::list FilterList; /// contains the list of ids usr only wants to see + bool FilterSwitch; /// determines whether filter is activated or not std::string Status; /// the status of the user - list UsrProfiles; /// contains list to users friends profile + std::string FavSong; /// favorite song of usr, consider sending pathfile to d/l + std::list FriendList; /// list of friends + std::map FriendSongset; // + //std::multimap blogs; /// blogs recorded + std::map< std::string, std::multimap > UsrBlogSet; /// contain usr and their blogs + + void loadDummy(void); /// loads dummy data for testing - std::map< std::string, rsQblogMsgs> usrBlogSet; /// contain usr and frineds blogs - // std::string favSong; ///usrs latest fav song }; - - + #endif /*P3QBLOG_H_*/