~ubuntu-branches/ubuntu/jaunty/linuxdcpp/jaunty

« back to all changes in this revision

Viewing changes to linux/WulforUtil.hh

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2007-12-26 02:35:22 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20071226023522-33kcy4wmyadot0tr
Tags: 1.0.1-1
* New upstream release.
* Added magnet support
  (Closes: #416879)
* New description, provided upstream, thanks !
* Updated standards to 3.7.3 (no changes)
* Patched to build with GCC 4.3. Patch is minimal,
  current code still use deprecated headers.
  (Closes: #455342)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
                static std::vector<int> splitString(const std::string &str, const std::string &delimiter);
32
32
                static std::string linuxSeparator(const std::string &ps);
33
33
                static std::string windowsSeparator(const std::string &ps);
 
34
                static std::vector<std::string> getLocalIPs();
 
35
                static std::string getNicks(const std::string &cid);
34
36
                static std::string getNicks(const CID& cid);
35
37
                static std::string getNicks(const User::Ptr& user);
 
38
                static std::string getHubNames(const std::string &cid);
36
39
                static std::string getHubNames(const CID& cid);
37
40
                static std::string getHubNames(const User::Ptr& user);
38
41
                static std::string getTextFromMenu(GtkMenuItem *item);
39
42
                static std::vector<std::string>& getCharsets();
40
43
                static void openURI(const std::string &uri);
 
44
                // Magnet links
 
45
                static std::string makeMagnet(const std::string &name, const int64_t size, const std::string &tth);
 
46
                static bool splitMagnet(const std::string &magnet, std::string &name, int64_t &size, std::string &tth);
 
47
                static bool isMagnet(const std::string &text);
 
48
                static bool isLink(const std::string &text);
 
49
                static bool isHubURL(const std::string &text);
41
50
        private:
42
51
                static std::vector<std::string> charsets;
 
52
                static const std::string magnetSignature;
43
53
};
44
54
 
45
55
#endif