many: update for lib/message updates

Adapt to the new names / directory. Big commit, but mostly just very boring renaming.
This commit is contained in:
Dirk-Jan C. Binnema
2022-03-20 14:12:41 +02:00
parent 4c4fb1759f
commit f7c84006d7
32 changed files with 528 additions and 580 deletions

View File

@ -30,7 +30,7 @@
#include <inttypes.h>
#include <utils/mu-utils.hh>
#include "mu-message-contact.hh"
#include <message/mu-message.hh>
namespace Mu {
@ -53,19 +53,19 @@ public:
/**
* Add a contact
*
* @param contact a MessageContact object
* @param contact a Contact object
*
*/
void add(MessageContact&& contact);
void add(Contact&& contact);
/**
* Add a contacts sequemce
*
* @param contacts a MessageContact object sequence
* @param contacts a Contact object sequence
*
*/
void add(MessageContacts&& contacts) {
void add(Contacts&& contacts) {
for (auto&& contact: contacts)
add(std::move(contact));
}
@ -124,14 +124,14 @@ public:
*
* @return contact info, or {} if not found
*/
const MessageContact* _find(const std::string& email) const;
const Contact* _find(const std::string& email) const;
/**
* Prototype for a callable that receives a contact
*
* @param contact some contact
*/
using EachContactFunc = std::function<void(const MessageContact& contact_info)>;
using EachContactFunc = std::function<void(const Contact& contact_info)>;
/**
* Invoke some callable for each contact, in order of rank.