Hopefully fixed indentation in BUrl header. Made data members in BUrl private. Added some class methods. Adapted urlwrapper to use the BUrl class. Removed a few obvious comments and some code that was defined away. Turned off debugging. Stripped App suffix from class name. No intentional changes to the core functionality of urlwrapper.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30739 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -12,34 +12,43 @@ namespace Support {
|
||||
|
||||
class BUrl : public BString {
|
||||
public:
|
||||
BUrl(const char *url);
|
||||
~BUrl();
|
||||
BUrl(const char *url);
|
||||
~BUrl();
|
||||
|
||||
status_t ParseAndSplit();
|
||||
status_t InitCheck() const;
|
||||
status_t InitCheck() const;
|
||||
|
||||
bool HasHost() const;
|
||||
bool HasPort() const;
|
||||
bool HasUser() const;
|
||||
bool HasPass() const;
|
||||
bool HasPath() const;
|
||||
bool HasPreferredApplication() const;
|
||||
BString PreferredApplication() const;
|
||||
status_t OpenWithPreferredApplication(bool onProblemAskUser = true) const;
|
||||
|
||||
BString Proto() const;
|
||||
BString Full() const;
|
||||
BString Host() const;
|
||||
BString Port() const;
|
||||
BString User() const;
|
||||
BString Pass() const;
|
||||
bool HasHost() const;
|
||||
bool HasPort() const;
|
||||
bool HasUser() const;
|
||||
bool HasPass() const;
|
||||
bool HasPath() const;
|
||||
|
||||
BString Proto() const;
|
||||
BString Full() const;
|
||||
BString Host() const;
|
||||
BString Port() const;
|
||||
BString User() const;
|
||||
BString Pass() const;
|
||||
BString Path() const;
|
||||
|
||||
status_t UnurlString(BString &string);
|
||||
|
||||
BString proto;
|
||||
BString full;
|
||||
BString host;
|
||||
BString port;
|
||||
BString user;
|
||||
BString pass;
|
||||
BString path;
|
||||
private:
|
||||
status_t fStatus;
|
||||
status_t _ParseAndSplit();
|
||||
BString _UrlMimeType() const;
|
||||
|
||||
BString proto;
|
||||
BString full;
|
||||
BString host;
|
||||
BString port;
|
||||
BString user;
|
||||
BString pass;
|
||||
BString path;
|
||||
status_t fStatus;
|
||||
};
|
||||
|
||||
}; // namespace Support
|
||||
|
||||
Reference in New Issue
Block a user