qtmobility/src/messaging/qmessageaddress.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    55 public:
    55 public:
    56     enum Type {
    56     enum Type {
    57         System = 1,
    57         System = 1,
    58         Phone,
    58         Phone,
    59         Email,
    59         Email,
    60         Xmpp
    60         InstantMessage
    61         // Extensible
    61         // Extensible
    62     };
    62     };
    63 
    63 
    64     QMessageAddress();
    64     QMessageAddress();
    65     QMessageAddress(Type type, const QString &recipient);
    65     QMessageAddress(Type type, const QString &addressee);
    66     QMessageAddress(const QMessageAddress &other);
    66     QMessageAddress(const QMessageAddress &other);
    67 
    67 
    68     virtual ~QMessageAddress();
    68     virtual ~QMessageAddress();
    69 
    69 
    70     QMessageAddress& operator=(const QMessageAddress &other);
    70     QMessageAddress& operator=(const QMessageAddress &other);
    73     bool operator!=(const QMessageAddress &other) const;
    73     bool operator!=(const QMessageAddress &other) const;
    74 
    74 
    75     Type type() const;
    75     Type type() const;
    76     void setType(Type type);
    76     void setType(Type type);
    77 
    77 
    78     QString recipient() const;
    78     QString addressee() const;
    79     void setRecipient(const QString &recipient);
    79     void setAddressee(const QString &addressee);
    80 
    80 
    81     static void parseEmailAddress(const QString& emailAddress, QString *name, QString *address, QString *suffix = 0, bool *startDelimeterFound = 0, bool *endDelimeterFound = 0);
    81     static void parseEmailAddress(const QString& emailAddress, QString *name, QString *address, QString *suffix = 0, bool *startDelimeterFound = 0, bool *endDelimeterFound = 0);
    82 
    82 
    83 private:
    83 private:
    84     QMessageAddressPrivate *d_ptr;
    84     QMessageAddressPrivate *d_ptr;