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

Comparing trunk/Collector.cpp (file contents):
Revision 20 by douglas, 2004-07-16T00:41:53-07:00 vs.
Revision 21 by douglas, 2004-07-16T23:37:41-07:00

# Line 4 | Line 4
4   //
5   // $Id$
6  
7 + #include "AwayMessage.hpp"
8   #include "Collector.hpp"
9 + #include "Stamp.hpp"
10  
11   #include <cstring>
12 +
13 + extern "C"
14 + {
15   #include <pwd.h>
16   #include <unistd.h>
17 + }
18  
19   Collector::Collector(const ext::String& login, ext::String& password, const
20 <        std::set<Buddy>& buddies, bool start) : login(login), password(password),
21 <        buddies(buddies), start(start), prompted(false)
20 >        std::set<Buddy>& buddies, const Database& database, bool start) :
21 >        login(login), password(password), buddies(buddies), database(database),
22 >        start(start), prompted(false)
23   {
24          if (start)
25          {
# Line 70 | Line 77 | void Collector::prompt()
77  
78          this->password = password;
79  
80 <        for (size_t index(strlen(password)); index > 0; --index) password[index -
81 <                1] = '\0';
80 >        for (size_t index(std::strlen(password)); index > 0; --index)
81 >                password[index - 1] = '\0';
82   }
83  
84   void Collector::reply(const Buddy& buddy, const ext::String& message)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines