FACT++  1.0
int SkypeClient::HandleMsg ( const EventImp evt)
inlineprivate

Definition at line 61 of file skypeclient.cc.

References EventImp::GetSize(), and EventImp::GetString().

Referenced by SkypeClient().

62  {
63  if (evt.GetSize()==0)
64  return GetCurrentState();
65 
66  for (auto it=fContacts.begin(); it!=fContacts.end(); it++)
67  SendSkypeMessage(*it, evt.GetString());
68 
69  ostringstream msg;
70  msg << evt.GetString() << " [" << fContacts.size() << "]";
71 
72  Info(msg);
73 
74  return GetCurrentState();
75  }
int GetCurrentState() const
return the current state of the machine
std::string GetString() const
Definition: EventImp.cc:194
int Info(const std::string &str)
Definition: MessageImp.h:47
bool SendSkypeMessage(const string &chat, const string &msg)
Definition: skypeclient.cc:315
vector< string > fContacts
Definition: skypeclient.cc:29
virtual size_t GetSize() const
Definition: EventImp.h:55

+ Here is the call graph for this function:

+ Here is the caller graph for this function: