forked from blue/squawk
some hopefully final preparations for delay manager
This commit is contained in:
parent
9fff409630
commit
5ba97ecc25
8 changed files with 148 additions and 56 deletions
|
@ -328,3 +328,26 @@ Shared::VCard * Shared::Info::getVCard() {
|
|||
throw 365;
|
||||
}
|
||||
}
|
||||
|
||||
void Shared::Info::setActiveKeys(std::list<KeyInfo>* keys) {
|
||||
switch (type) {
|
||||
case EntryType::contact:
|
||||
case EntryType::ownAccount:
|
||||
activeKeys = keys;
|
||||
break;
|
||||
default:
|
||||
throw 366;
|
||||
}
|
||||
}
|
||||
|
||||
void Shared::Info::setVCard(Shared::VCard* card) {
|
||||
switch (type) {
|
||||
case EntryType::contact:
|
||||
case EntryType::ownAccount:
|
||||
vcard = card;
|
||||
break;
|
||||
default:
|
||||
throw 367;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -69,11 +69,13 @@ public:
|
|||
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue