1 // ------------------------------------------------
6 // (c) 2002 peercast.org
7 // ------------------------------------------------
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
17 // ------------------------------------------------
27 extern LRESULT CALLBACK GUIProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
28 extern void ADDLOG(const char *str,int id,bool sel,void *data, LogBuffer::TYPE type);
30 extern String iniFileName;
36 WM_INITSETTINGS = WM_USER,
54 IdData(int cid, int sid, unsigned int ip){
60 int getChannelId(){return channel_id;};
61 int getServentId(){return servent_id;};
62 unsigned int getIpAddr(){return ip_addr;};
75 // unsigned int syncpos;
81 unsigned int totalRelays;
82 unsigned int totalListeners;
84 // char ver_ex_prefix[2];
97 unsigned int lastSkipTime;
98 unsigned int lastSkipCount;
112 void setData(Servent *s, ChanHit *hit, unsigned int listeners, unsigned int relays, bool infoFlg);
113 bool getInfoFlg(){return infoFlg;}
114 ChanHit *getChanHit(){return &chanHit;};
115 int getStatus(){return status;};
116 Host getHost(){return host;};
118 int getServentId(){return servent_id;};
120 bool getEnableFlg(){return EnableFlg;};
121 void setEnableFlg(bool f){EnableFlg = f;};
122 ServentData *getNextData(){return next;};
123 void setNextData(ServentData *s){next = s;};
124 bool getSelected(){return selected;};
125 void setSelected(bool f){selected = f; if (!f){posX=0;posY=0;}};
126 int getWidth(){return width;};
127 void setWidth(int w){width = w;};
128 int getHeight(){return height;};
129 void setHeight(int h){height = h;};
130 String getName(){return hostname;};
131 void setName(String n){hostname = n;};
133 int drawServent(Gdiplus::Graphics *g, int x, int y);
135 bool checkDown(int x, int y);
145 unsigned int lastPlayStart;
154 unsigned int lastSkipTime;
155 unsigned int skipCount;
165 ServentData *serventDataTop;
177 serventDataTop = NULL;
179 type = Servent::T_NONE;
182 int drawChannel(Gdiplus::Graphics *g, int x, int y);
184 void setData(Channel *);
185 int getChannelId(){return channel_id;};
186 char* getName(){return &(name[0]);};
187 int getBitRate(){return bitRate;};
188 bool isStayConnected(){return stayConnected;};
189 bool isTracker(){return bTracker;};
190 int getStatus(){return status;};
191 unsigned int getLastSkipTime(){return lastSkipTime;};
193 int getTotalListeners(){return totalListeners;};
194 int getTotalRelays(){return totalRelays;};
195 int getLocalListeners(){return localListeners;};
196 int getLocalRelays(){return localRelays;};
198 bool getEnableFlg(){return EnableFlg;};
199 void setEnableFlg(bool flg){EnableFlg = flg;};
200 ChannelData *getNextData(){return next;};
201 void setNextData(ChannelData* cd){next = cd;};
203 int getPosX(){return posX;};
204 void setPosX(int x){posX = x;}
205 int getPosY(){return posY;};
206 void setPosY(int y){posY = y;};
207 int getWidth(){return width;};
208 void setWidth(int w){width = w;};
209 int getHeight(){return height;};
210 void setHeight(int h){height = h;};
211 bool isSelected(){return selected;};
212 void setSelected(bool sel){selected = sel;};
213 bool getOpenFlg(){return openFlg;};
214 void setOpenFlg(bool b){openFlg = b;};
216 ServentData* getServentDataTop(){return serventDataTop;};
217 ServentData* findServentData(int servent_id);
218 void addServentData(ServentData *sd);
219 void deleteDisableServents();
221 bool setName(int servent_id, String name);
222 int getServentCount();
224 bool checkDown(int x, int y);
226 Servent::TYPE type; // COUT
\82Ì
\83T
\81[
\83o
\83\93\83g
\8fî
\95ñ
\95Û
\8e\9d\97p
227 int servent_id; //
\93¯
\8fã
\81Bchannel_id
\82Å
\91ã
\97p
\82Å
\82«
\82½
\82¯
\82ÇPublic
\82É
\82µ
\82½
\82
\82È
\82¢