trying linter settings
This commit is contained in:
parent
8f5325b291
commit
93c5be412e
3 changed files with 3903 additions and 294 deletions
|
@ -25,71 +25,49 @@
|
|||
#include <list>
|
||||
|
||||
namespace Shared {
|
||||
|
||||
/**
|
||||
* This class should contain all nessesary data to display
|
||||
* roster element info (contact, or out of roster contact, or MUC, or MIX in the future)
|
||||
*
|
||||
* under development yet
|
||||
*/
|
||||
class Info {
|
||||
class Info : public QObject, public VCard {
|
||||
public:
|
||||
Info();
|
||||
Info(const QString& address, EntryType = EntryType::none);
|
||||
Info(const Info& other);
|
||||
Info(Info&& other);
|
||||
virtual ~Info();
|
||||
Info ();
|
||||
Info (const QString& address, EntryType = EntryType::none);
|
||||
Info (const Info& other);
|
||||
Info (Info&& other);
|
||||
virtual ~Info ();
|
||||
|
||||
Info& operator = (const Info& other);
|
||||
Info& operator = (Info&& other);
|
||||
|
||||
QString getAddress() const;
|
||||
const QString& getAddressRef() const;
|
||||
void setAddress(const QString& address);
|
||||
|
||||
EntryType getType() const;
|
||||
void turnIntoNone();
|
||||
void turnIntoContact(
|
||||
const VCard& card = VCard(),
|
||||
const std::list<KeyInfo>& activeKeys = {},
|
||||
const std::list<KeyInfo>& inactiveKeys = {}
|
||||
);
|
||||
void turnIntoContact(
|
||||
VCard* card = new VCard,
|
||||
std::list<KeyInfo>* activeKeys = new std::list<KeyInfo>,
|
||||
std::list<KeyInfo>* inactiveKeys = new std::list<KeyInfo>
|
||||
);
|
||||
void turnIntoOwnAccount(
|
||||
const VCard& card = VCard(),
|
||||
const std::list<KeyInfo>& activeKeys = {},
|
||||
const std::list<KeyInfo>& inactiveKeys = {}
|
||||
);
|
||||
void turnIntoOwnAccount(
|
||||
VCard* card = new VCard,
|
||||
std::list<KeyInfo>* activeKeys = new std::list<KeyInfo>,
|
||||
std::list<KeyInfo>* inactiveKeys = new std::list<KeyInfo>
|
||||
);
|
||||
|
||||
const VCard& getVCardRef() const;
|
||||
VCard& getVCardRef();
|
||||
const VCard* getVCard() const;
|
||||
VCard* getVCard();
|
||||
void setVCard(Shared::VCard* card);
|
||||
|
||||
const std::list<KeyInfo>& getActiveKeysRef() const;
|
||||
std::list<KeyInfo>& getActiveKeysRef();
|
||||
const std::list<KeyInfo>* getActiveKeys() const;
|
||||
std::list<KeyInfo>* getActiveKeys();
|
||||
void setActiveKeys(std::list<KeyInfo>* keys);
|
||||
|
||||
const std::list<KeyInfo>& getInactiveKeysRef() const;
|
||||
std::list<KeyInfo>& getInactiveKeysRef();
|
||||
const std::list<KeyInfo>* getInactiveKeys() const;
|
||||
std::list<KeyInfo>* getInactiveKeys();
|
||||
QString getAddress () const;
|
||||
const QString& getAddressRef () const;
|
||||
void setAddress (const QString& address);
|
||||
EntryType getType () const;
|
||||
void turnIntoNone ();
|
||||
void turnIntoContact (const VCard& card = VCard(), const std::list<KeyInfo>& activeKeys = {}, const std::list<KeyInfo>& inactiveKeys = {});
|
||||
void turnIntoContact (VCard* card = new VCard, std::list<KeyInfo>* activeKeys = new std::list<KeyInfo>, std::list<KeyInfo>* inactiveKeys = new std::list<KeyInfo>);
|
||||
void turnIntoOwnAccount (const VCard& card = VCard(), const std::list<KeyInfo>& activeKeys = {}, const std::list<KeyInfo>& inactiveKeys = {});
|
||||
void turnIntoOwnAccount (VCard* card = new VCard, std::list<KeyInfo>* activeKeys = new std::list<KeyInfo>, std::list<KeyInfo>* inactiveKeys = new std::list<KeyInfo>);
|
||||
const VCard& getVCardRef () const;
|
||||
VCard& getVCardRef ();
|
||||
const VCard* getVCard () const;
|
||||
VCard* getVCard ();
|
||||
void setVCard (Shared::VCard* card);
|
||||
const std::list<KeyInfo>& getActiveKeysRef () const;
|
||||
std::list<KeyInfo>& getActiveKeysRef ();
|
||||
const std::list<KeyInfo>* getActiveKeys () const;
|
||||
std::list<KeyInfo>* getActiveKeys ();
|
||||
void setActiveKeys (std::list<KeyInfo>* keys);
|
||||
const std::list<KeyInfo>& getInactiveKeysRef () const;
|
||||
std::list<KeyInfo>& getInactiveKeysRef ();
|
||||
const std::list<KeyInfo>* getInactiveKeys () const;
|
||||
std::list<KeyInfo>* getInactiveKeys ();
|
||||
|
||||
private:
|
||||
EntryType type;
|
||||
QString address;
|
||||
|
||||
VCard* vcard;
|
||||
std::list<KeyInfo>* activeKeys;
|
||||
std::list<KeyInfo>* inactiveKeys;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue