// add/remove this message from the specified folder's set of messages void Message::save(Folder& f) { std::cout << "Message saved to folder" << std::endl; folders.insert(&f); f.addMsg(this); }
void Message::save(Folder& folder){ this->addFldr(&folder); folder.addMsg(this); }
void Message::save(Folder &f){ folders.insert(&f); f.addMsg(this); }
void Message::saveMessage(Folder &fd) { folders.insert(&fd); fd.addMsg(this); }
void Message::save(Folder &f) { folders.insert(&f); // add the given Folder to our list of Folders f.addMsg(this); // add this Message to f's set of Messages }
void Message::save(Folder &f) { // add f to Folders and this Message to f's list of Messages folders.insert(&f); f.addMsg(this); }
void Message::save(Folder& fldr) { addFldr(&fldr); fldr.addMsg(this); }