summaryrefslogtreecommitdiff
path: root/src/gui/whoisonline.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/whoisonline.h')
-rw-r--r--src/gui/whoisonline.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/gui/whoisonline.h b/src/gui/whoisonline.h
index 72063b183..112ad35ba 100644
--- a/src/gui/whoisonline.h
+++ b/src/gui/whoisonline.h
@@ -65,7 +65,9 @@ class WhoIsOnline : public Window,
/**
* Loads and display online list from the memory buffer.
*/
- void loadList();
+ void loadWebList();
+
+ void loadList(std::vector<std::string> &list);
void handleLink(const std::string& link, gcn::MouseEvent *event);
@@ -83,6 +85,10 @@ class WhoIsOnline : public Window,
void optionChanged(const std::string &name);
+ void updateList(std::vector<std::string> &list);
+
+ void readFromWeb();
+
private:
void download();
@@ -101,6 +107,13 @@ private:
const std::string prepareNick(std::string nick, int level,
std::string color) const;
+
+ void updateWindow(std::vector<std::string> &friends,
+ std::vector<std::string> &neutral,
+ std::vector<std::string> &disregard,
+ std::vector<std::string> enemy,
+ int numOnline);
+
enum DownloadStatus
{
UPDATE_ERROR = 0,
@@ -137,4 +150,6 @@ private:
bool mUpdateOnlineList;
};
+extern WhoIsOnline *whoIsOnline;
+
#endif