ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Publisher.hpp
(Generate patch)

Comparing trunk/Publisher.hpp (file contents):
Revision 13 by douglas, 2004-07-11T23:49:09-07:00 vs.
Revision 27 by douglas, 2004-07-17T19:21:04-07:00

# Line 7 | Line 7
7   #ifndef _Publisher_hpp_
8   #define _Publisher_hpp_
9  
10 < #include "AwayMessage.hpp"
10 > #include "Zoe.hpp"
11  
12   class Publisher
13   {
14   private:
15 <        //
15 >        const std::set<Buddy>& buddies;
16 >        const Database& database;
17 >        bool start;
18 >        api::Thread publisher;
19 >        int publish();
20 >        void update();
21   public:
22 <        Publisher(const std::set<Buddy>& buddies);
23 <        ~Publisher() {}
24 <        //
22 >        Publisher(const std::set<Buddy>& buddies, const Database& database, bool
23 >                start);
24 >        ~Publisher() { if (start) publisher.Join(); }
25   };
26  
27   #endif // _Publisher_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines