ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/WinXPFAQPoll/Poller.cpp
Revision: 118
Committed: 2003-04-01T13:41:03-08:00 (22 years, 2 months ago) by douglas
File size: 426 byte(s)
Log Message:
Fixed some initialization stuff and added structures to Poller.

File Contents

# User Rev Content
1 douglas 104 // Windows XP FAQ Poll
2     //
3     // Douglas Thrift
4     //
5     // Poller.cpp
6    
7     #include "Poller.h"
8    
9     Poller::Poller()
10     {
11 douglas 118 string mailbox = session->list("\"\" \"" + account.getMailbox() + "\"");
12    
13     if (mailbox.find(account.getMailbox()) == string::npos)
14     {
15     cerr << program << ": Mailbox does not exist: " << account.getMailbox()
16     << "\n";
17    
18     exit(1);
19     }
20 douglas 104 }
21    
22 douglas 118 void Poller::poll(bool nodelete, const string& file)
23 douglas 104 {
24 douglas 118 this->nodelete = nodelete;
25 douglas 104 }