2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Alpha version 0.10.21: pinned chats, groups in common, new design.

This commit is contained in:
John Preston
2016-12-30 17:53:51 +04:00
parent b39987c343
commit bc0c355d2d
20 changed files with 457 additions and 430 deletions

View File

@@ -429,24 +429,23 @@ inline QString strMakeFromLetters(const uint32 *letters, int32 len) {
class MimeType {
public:
enum TypeEnum {
enum class Known {
Unknown,
TDesktopTheme,
WebP,
};
MimeType(const QMimeType &type) : _typeStruct(type), _type(Unknown) {
MimeType(const QMimeType &type) : _typeStruct(type) {
}
MimeType(TypeEnum type) : _type(type) {
MimeType(Known type) : _type(type) {
}
QStringList globPatterns() const;
QString filterString() const;
QString name() const;
private:
QMimeType _typeStruct;
TypeEnum _type;
Known _type = Known::Unknown;
};