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:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user