Show
Ignore:
Timestamp:
08/22/10 21:29:27 (21 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
67c3cdbee0ef6f0708dfe5bf5343ae8b75b33610
Parents:
5d836bde01291d90fa3c62d9841ee1084afa3ff7
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (08/22/10 21:29:27)
Message:

Add support for marking messages read

Closes #13

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • db/user.hh

    r5d836bd r563ece2  
    5151                std::set< boost::shared_ptr<role> > roles; 
    5252 
     53                std::set<std::string> read_msgids; 
     54 
    5355                friend class db; 
    5456        public: 
     
    100102                void delete_role(boost::shared_ptr<role> r); 
    101103 
     104                bool has_read(std::string msgid) const { 
     105                        return read_msgids.find(msgid) != read_msgids.end(); 
     106                } 
     107                void mark_read(std::string msgid); 
     108                void unmark_read(std::string msgid); 
     109 
    102110                static std::string passwd_problems(std::string pw) { 
    103111                        std::string err;