Some fixes to connection manager.
[jenirok] / src / common / contactmanager.h
index 0807519..291a52c 100644 (file)
 class ContactManager
 {
 public:
+    struct Name
+    {
+        QString firstname;
+        QString surname;
+    };
+
     struct Contact
     {
-        QString name;
+        Name name;
         QString number;
         QString street;
+        QString zipCode;
         QString city;
+        QString country;
     };
 
     ContactManager();
     ~ContactManager();
     bool addContact(Contact const& contact);
     bool numberExists(QString const& number);
-    static QString& removeCountryCode(QString& number);
+    static void stringToName(QString const& strname, Name& name);
 
 private:
     bool load();