qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
icoregroupquery.h
Go to the documentation of this file.
1 /*
2  Copyright © 2013 by Maxim Biro <nurupo.contributions@gmail.com>
3  Copyright © 2014-2019 by The qTox Project Contributors
4 
5  This file is part of qTox, a Qt-based graphical interface for Tox.
6 
7  qTox is libre software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  qTox is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with qTox. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #pragma once
22 
23 #include "groupid.h"
24 #include "toxpk.h"
25 
26 #include <QString>
27 #include <QStringList>
28 
29 #include <cstdint>
30 
32 {
33 public:
34  ICoreGroupQuery() = default;
35  virtual ~ICoreGroupQuery();
36  ICoreGroupQuery(const ICoreGroupQuery&) = default;
37  ICoreGroupQuery& operator=(const ICoreGroupQuery&) = default;
38  ICoreGroupQuery(ICoreGroupQuery&&) = default;
40 
41  virtual GroupId getGroupPersistentId(uint32_t groupNumber) const = 0;
42  virtual uint32_t getGroupNumberPeers(int groupId) const = 0;
43  virtual QString getGroupPeerName(int groupId, int peerId) const = 0;
44  virtual ToxPk getGroupPeerPk(int groupId, int peerId) const = 0;
45  virtual QStringList getGroupPeerNames(int groupId) const = 0;
46  virtual bool getGroupAvEnabled(int groupId) const = 0;
47 };
ICoreGroupQuery::getGroupPersistentId
virtual GroupId getGroupPersistentId(uint32_t groupNumber) const =0
ICoreGroupQuery::getGroupPeerPk
virtual ToxPk getGroupPeerPk(int groupId, int peerId) const =0
ICoreGroupQuery::getGroupAvEnabled
virtual bool getGroupAvEnabled(int groupId) const =0
ICoreGroupQuery::getGroupPeerName
virtual QString getGroupPeerName(int groupId, int peerId) const =0
ICoreGroupQuery::ICoreGroupQuery
ICoreGroupQuery()=default
ICoreGroupQuery::operator=
ICoreGroupQuery & operator=(const ICoreGroupQuery &)=default
toxpk.h
ICoreGroupQuery::getGroupNumberPeers
virtual uint32_t getGroupNumberPeers(int groupId) const =0
ToxPk
This class represents a Tox Public Key, which is a part of Tox ID.
Definition: toxpk.h:26
ICoreGroupQuery
Definition: icoregroupquery.h:31
groupid.h
GroupId
This class represents a long term persistent group identifier.
Definition: groupid.h:26
ICoreGroupQuery::~ICoreGroupQuery
virtual ~ICoreGroupQuery()
ICoreGroupQuery::getGroupPeerNames
virtual QStringList getGroupPeerNames(int groupId) const =0