X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpedro%2Fpedroconfig.h;h=be8c6c665b8297bf3becefea1398089ceb68be35;hb=19f2d6797853686cf668528be392548100e92025;hp=61650c361f29c818969ff2dd796eeb396d8051cb;hpb=19129d5197e612b7a7d6574500f6266ea1de2a62;p=inkscape.git diff --git a/src/pedro/pedroconfig.h b/src/pedro/pedroconfig.h index 61650c361..be8c6c665 100644 --- a/src/pedro/pedroconfig.h +++ b/src/pedro/pedroconfig.h @@ -6,7 +6,7 @@ * Authors: * Bob Jamison * - * Copyright (C) 2005-2006 Bob Jamison + * Copyright (C) 2005-2008 Bob Jamison * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -72,7 +72,7 @@ public: /** * */ - virtual DOMString getName() + virtual DOMString getName() const { return name; } /** @@ -84,7 +84,7 @@ public: /** * */ - virtual DOMString getHost() + virtual DOMString getHost() const { return host; } /** @@ -96,7 +96,7 @@ public: /** * */ - virtual int getPort() + virtual int getPort() const { return port; } /** @@ -108,7 +108,7 @@ public: /** * */ - virtual DOMString getUsername() + virtual DOMString getUsername() const { return username; } /** @@ -120,7 +120,7 @@ public: /** * */ - virtual DOMString getPassword() + virtual DOMString getPassword() const { return password; } /** @@ -178,7 +178,7 @@ public: /** * */ - XmppConfig(const XmppConfig &other) + XmppConfig(const XmppConfig &other) : XmppEventTarget(other) { assign(other); } /** @@ -217,9 +217,68 @@ public: /** * */ - virtual std::vector &getAccounts() - { return accounts; } + virtual std::vector &getAccounts(); + /** + * + */ + virtual DOMString getMucGroup(); + + /** + * + */ + virtual void setMucGroup(const DOMString &val); + + /** + * + */ + virtual DOMString getMucHost(); + + /** + * + */ + virtual void setMucHost(const DOMString &val); + + /** + * + */ + virtual DOMString getMucNick(); + + /** + * + */ + virtual void setMucNick(const DOMString &val); + + /** + * + */ + virtual DOMString getMucPassword(); + + /** + * + */ + virtual void setMucPassword(const DOMString &val); + + /** + * + */ + virtual bool accountAdd(const XmppAccount &account); + + /** + * + */ + virtual bool accountExists(const DOMString &accountName); + + /** + * + */ + virtual void accountRemove(const DOMString &accountName); + + /** + * + */ + bool accountFind(const DOMString &accountName, + XmppAccount &retVal); private: @@ -233,6 +292,15 @@ private: accounts = other.accounts; } + //# Group stuff + DOMString mucGroup; + + DOMString mucHost; + + DOMString mucNick; + + DOMString mucPassword; + std::vector accounts; };