Removed
Link Here
|
1 |
--- golded3/geprot.h.orig Tue May 16 16:49:29 2006 |
2 |
+++ golded3/geprot.h Thu Nov 23 11:11:14 2006 |
3 |
@@ -19,7 +19,7 @@ |
4 |
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
5 |
// MA 02111-1307 USA |
6 |
// ------------------------------------------------------------------ |
7 |
-// $Id: geprot.h,v 1.45 2006/05/14 14:33:21 stas_degteff Exp $ |
8 |
+// $Id: geprot.h,v 1.48 2006/11/22 08:25:52 stas_degteff Exp $ |
9 |
// ------------------------------------------------------------------ |
10 |
// Collective header for GE*.CPP source files. |
11 |
// ------------------------------------------------------------------ |
12 |
@@ -210,19 +210,6 @@ |
13 |
|
14 |
|
15 |
// ------------------------------------------------------------------ |
16 |
-// GEMLST prototypes |
17 |
- |
18 |
-void MsgThreadlist(); |
19 |
- |
20 |
- |
21 |
-// ------------------------------------------------------------------ |
22 |
-// GEMRKS prototypes |
23 |
- |
24 |
-void MarkMsgs(GMsg* msg); |
25 |
-int NextMarkedmsg(int direction, GMsg* msg); |
26 |
- |
27 |
- |
28 |
-// ------------------------------------------------------------------ |
29 |
// GEMSGS prototypes |
30 |
|
31 |
void TokenXlat(int mode, std::string &input, GMsg* msg, GMsg* oldmsg, int origarea); |
32 |
@@ -235,6 +222,70 @@ |
33 |
int DoCarboncopy(GMsg* msg, GMsg** carbon); |
34 |
void DoCrosspost(GMsg* msg, std::vector<int> &postareas); |
35 |
char* ParseInternetAddr(char* __string, char* __name, char* __addr, bool detect_charset = true); |
36 |
+ |
37 |
+ |
38 |
+// ------------------------------------------------------------------ |
39 |
+// GEMLST prototypes |
40 |
+ |
41 |
+void MsgThreadlist(); |
42 |
+ |
43 |
+// ------------------------------------------------------------------ |
44 |
+ |
45 |
+class ThreadEntry { |
46 |
+ |
47 |
+public: |
48 |
+ uint32_t msgno; |
49 |
+ uint32_t replyto; |
50 |
+ uint32_t reply1st; |
51 |
+ uint32_t replynext; |
52 |
+ uint32_t replytoindex; |
53 |
+ uint32_t level; |
54 |
+}; |
55 |
+ |
56 |
+// ------------------------------------------------------------------ |
57 |
+ |
58 |
+class GThreadlist : public gwinpick { |
59 |
+ |
60 |
+private: |
61 |
+ |
62 |
+ gwindow window; |
63 |
+ GMsg msg; |
64 |
+ ThreadEntry t; |
65 |
+ |
66 |
+ std::vector<ThreadEntry> list; |
67 |
+ std::vector<std::string> tree; |
68 |
+ |
69 |
+ dword m_OldMsgno; |
70 |
+ uint m_OldTags; |
71 |
+ std::string m_OldEchoId; |
72 |
+ |
73 |
+ void BuildThreadIndex(dword msgno); |
74 |
+ void recursive_build(uint32_t msgn, uint32_t rn, uint32_t level, uint32_t index); |
75 |
+ void GenTree(int idx); |
76 |
+ void update_title(); |
77 |
+ bool NextThread(bool next); |
78 |
+ |
79 |
+public: |
80 |
+ |
81 |
+ void open(); // Called after window is opened |
82 |
+ void close(); // Called after window is closed |
83 |
+ void print_line(uint idx, uint pos, bool isbar); |
84 |
+ void do_delayed(); |
85 |
+ bool handle_key(); // Handles keypress |
86 |
+ |
87 |
+ void Run(); |
88 |
+ bool GoNextUnread(bool reader); |
89 |
+ |
90 |
+ GThreadlist() { memset(&msg, 0, sizeof(GMsg)); replylinkfloat = CFG->replylinkfloat; }; |
91 |
+ ~GThreadlist() { ResetMsg(&msg); }; |
92 |
+}; |
93 |
+ |
94 |
+ |
95 |
+// ------------------------------------------------------------------ |
96 |
+// GEMRKS prototypes |
97 |
+ |
98 |
+void MarkMsgs(GMsg* msg); |
99 |
+int NextMarkedmsg(int direction, GMsg* msg); |
100 |
|
101 |
|
102 |
// ------------------------------------------------------------------ |