10#include <QCoreApplication>
20 m_grpId(grpid), m_name(
std::move(name)) {}
23 {
return m_grpId == grpid; }
44 static bool ToggleChannel(
uint chanid,
int changrpid,
bool delete_chan);
45 static bool AddChannel(
uint chanid,
int changrpid);
46 static bool DeleteChannel(
uint chanid,
int changrpid);
48 static bool InChannelGroupList(
const ChannelGroupList &groupList,
int grpid);
49 static bool NotInChannelGroupList(
const ChannelGroupList &groupList,
int grpid);
50 static QString GetChannelGroupName(
int grpid);
51 static int GetChannelGroupId(
const QString& changroupname);
52 static void UpdateChannelGroups(
void);
53 static int AddChannelGroup(
const QString &groupName);
54 static bool RemoveChannelGroup(
const QString &groupName);
55 static bool UpdateChannelGroup(
const QString & oldName,
const QString & newName);
std::vector< ChannelGroupItem > ChannelGroupList
ChannelGroupItem & operator=(const ChannelGroupItem &)=default
ChannelGroupItem(const ChannelGroupItem &)=default
ChannelGroupItem(const uint grpid, QString name)
Q_DECLARE_TR_FUNCTIONS(ChannelGroup)