ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Zoe.hpp
Revision: 34
Committed: 2004-07-20T16:49:06-07:00 (20 years, 11 months ago) by douglas
File size: 1604 byte(s)
Log Message:
Yeah, that's right.

File Contents

# Content
1 // Zoe AIM Away Message RSS Feed Generator
2 //
3 // Seth King and Douglas Thrift
4 //
5 // $Id$
6
7 #ifndef _Zoe_hpp_
8 #define _Zoe_hpp_
9
10 #include <iostream>
11
12 using std::cin;
13 using std::cout;
14 using std::cerr;
15
16 #include <map>
17 #include <set>
18 #include <vector>
19
20 #include <menes-api/console.hpp>
21 #include <menes-api/files.hpp>
22 #include <menes-api/timing.hpp>
23 #include <menes-dbi/connection.hpp>
24 #include <menes-dbi/resultset.hpp>
25 #include <menes-etl/fnbind.hpp>
26 #include <menes-ext/casts.hpp>
27 #include <menes-ext/string.hpp>
28 #include <menes-net/oscar/session.hpp>
29 #include <menes-net/oscar/tools/auth.hpp>
30 #include <menes-net/oscar/tools/buddy.hpp>
31 #include <menes-net/oscar/tools/chat.hpp>
32 #include <menes-net/oscar/tools/icbm.hpp>
33 #include <menes-net/oscar/tools/info.hpp>
34 #include <menes-xml/document.hpp>
35 #include <menes-xml/nodeset.hpp>
36 #include <menes-xml/parse.hpp>
37 #include <menes-xml/textwriter.hpp>
38
39 enum Color { reset, bright, dim, underscore = 4, blink, reverse = 7, hidden,
40 black = 30, red, green, yellow, blue, magenta, cyan, white,
41 _black = 40, _red, _green, _yellow, _blue, _magenta, _cyan, _white };
42
43 inline std::ostream& operator<<(std::ostream& sout, Color color)
44 {
45 return sout << "\033[" << unsigned(color) << 'm';
46 }
47
48 #include "Buddy.hpp"
49
50 struct Database { ext::String driver, host, user, password, db; };
51
52 class Zoe
53 {
54 private:
55 ext::String login, password;
56 Database database;
57 std::set<Buddy> buddies;
58 void configure();
59 void initialize();
60 public:
61 Zoe();
62 static bool debug, collector, publisher;
63 static ext::String program, config;
64 static ext::String generator();
65 };
66
67 #endif // _Zoe_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id