added namespaces

This commit is contained in:
fourtf
2017-01-18 21:30:23 +01:00
parent 82338baaa3
commit 2e8dc63a95
82 changed files with 681 additions and 459 deletions
+51
View File
@@ -0,0 +1,51 @@
#ifndef LINK_H
#define LINK_H
#include <QString>
namespace chatterino {
namespace messages {
class Link
{
public:
enum Type {
None,
Url,
CloseCurrentSplit,
UserInfo,
UserTimeout,
UserBan,
InsertText,
ShowMessage,
};
Link();
Link(Type getType, const QString &getValue);
bool
getIsValid()
{
return type == None;
}
Type
getType()
{
return type;
}
const QString &
getValue()
{
return value;
}
private:
Type type;
QString value;
};
}
}
#endif // LINK_H