571 const string rc =
SendDBusMessage(
"SEARCH USERSWAITINGMYAUTHORIZATION");
574 vector<string> users =
Split(rc);
576 if (users[0]!=
"USERS")
578 Error(
"Unexpected answer received '"+rc+
"'");
582 for (
auto it=users.begin()+1; it!=users.end(); it++)
584 const size_t p = it->length()-1;
Adds some functionality to boost::posix_time::ptime for our needs.
string SendDBusMessage(const string &cmd, bool display=true)
vector< string > Split(const string &msg)
int Error(const std::string &str)
static const string fAuthorizationMsg
bool SendDBusMessageNB(const string &cmd)