BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / terminal / HyperLink.h
blobba7d58a13e9322ffeedb4931803673b1514e40e5
1 /*
2 * Copyright 2013, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef HYPER_LINK_H
6 #define HYPER_LINK_H
9 #include <String.h>
12 class HyperLink {
13 public:
14 enum Type {
15 TYPE_URL,
16 TYPE_PATH,
17 TYPE_PATH_WITH_LINE,
18 TYPE_PATH_WITH_LINE_AND_COLUMN
21 public:
22 HyperLink();
23 HyperLink(const BString& address, Type type);
24 HyperLink(const BString& text,
25 const BString& address, Type type);
27 bool IsValid() const { return !fAddress.IsEmpty(); }
29 const BString& Text() const { return fText; }
30 const BString& Address() const { return fAddress; }
31 Type GetType() const { return fType; }
33 status_t Open();
35 private:
36 BString fText;
37 BString fAddress;
38 Type fType;
42 #endif // HYPER_LINK_H