mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
35 lines
915 B
C++
35 lines
915 B
C++
// This file Copyright © Mnemosyne LLC.
|
|
// It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only),
|
|
// or any future license endorsed by Mnemosyne LLC.
|
|
// License text can be found in the licenses/ folder.
|
|
|
|
#pragma once
|
|
|
|
#include <libtransmission/transmission.h>
|
|
|
|
#include <libtransmission-app/display-modes.h>
|
|
|
|
#include <QMetaType>
|
|
|
|
class UserMetaType
|
|
{
|
|
public:
|
|
enum
|
|
{
|
|
ShowModeType = QMetaType::User,
|
|
SortModeType,
|
|
EncryptionModeType,
|
|
};
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(tr_encryption_mode)
|
|
|
|
using ShowMode = transmission::app::ShowMode;
|
|
Q_DECLARE_METATYPE(ShowMode)
|
|
inline auto constexpr DefaultShowMode = transmission::app::DefaultShowMode;
|
|
inline auto constexpr ShowModeCount = transmission::app::ShowModeCount;
|
|
|
|
using SortMode = transmission::app::SortMode;
|
|
Q_DECLARE_METATYPE(SortMode)
|
|
inline auto constexpr DefaultSortMode = transmission::app::DefaultSortMode;
|