messagingapp/msgui/unifiededitor/inc/msgunieditoraddress.h
changeset 76 60a8a215b0ec
parent 67 fc91263aee62
equal deleted inserted replaced
73:ecf6a73a9186 76:60a8a215b0ec
    36 public:
    36 public:
    37 
    37 
    38     /**
    38     /**
    39      * Constructor
    39      * Constructor
    40      */
    40      */
    41     MsgUnifiedEditorAddress(const QString& label,
    41     MsgUnifiedEditorAddress(const QString& label, QGraphicsItem *parent = 0);
    42                             QGraphicsItem *parent = 0);
       
    43 
    42 
    44     /**
    43     /**
    45      * Destructor
    44      * Destructor
    46      */
    45      */
    47     ~MsgUnifiedEditorAddress();
    46     ~MsgUnifiedEditorAddress();
    60 
    59 
    61     /**
    60     /**
    62      * setter method to set address
    61      * setter method to set address
    63      * @param addrlist, list of addresses to be set in address editor
    62      * @param addrlist, list of addresses to be set in address editor
    64      */
    63      */
    65     void setAddresses(ConvergedMessageAddressList addrlist,bool aSkipCheck=FALSE);
    64     void setAddresses(ConvergedMessageAddressList addrlist,bool aSkipCheck=false);
    66 
    65 
    67     /**
    66     /**
    68      * Get amount of digits to be used in contact matching
    67      * Get amount of digits to be used in contact matching
    69      */
    68      */
    70     static int contactMatchDigits();
    69     static int contactMatchDigits();
    82 public slots:
    81 public slots:
    83     /**
    82     /**
    84      * To set focus on editable field.
    83      * To set focus on editable field.
    85      */
    84      */
    86     void setFocus();
    85     void setFocus();
    87 
       
    88 signals:
       
    89     /**
       
    90      * Emitted when send button from virtual ITUT is pressed.
       
    91      */
       
    92     void sendMessage();
       
    93 
       
    94     /**
       
    95      * Emitted when content is added or removed
       
    96      */
       
    97     void contentChanged();
       
    98 
    86 
    99 private slots:
    87 private slots:
   100 
    88 
   101     /**
    89     /**
   102      * called after selection from pbk.
    90      * called after selection from pbk.
   156 
   144 
   157     /**
   145     /**
   158      * Reset the addresslist to previous list
   146      * Reset the addresslist to previous list
   159      */
   147      */
   160     void resetToPrevious();
   148     void resetToPrevious();
       
   149     
       
   150     /**
       
   151      * emits contentsChanged signal on address count change.
       
   152      */
       
   153     void emitContentsChanged();
       
   154     
       
   155     /**
       
   156      * Checks if address field has a valid email id.
       
   157      */
       
   158     bool hasValidEmailAddress();
   161 
   159 
   162 private:
   160 private:
   163 
   161 
   164     /**
   162     /**
   165      * Push button to launch phone book.
   163      * Push button to launch phone book.
   203     /**
   201     /**
   204      * count by which a bulk-insertion will exceed max MMS recipient
   202      * count by which a bulk-insertion will exceed max MMS recipient
   205      * limit e.g. multiple selection from contact selection dialog
   203      * limit e.g. multiple selection from contact selection dialog
   206      */
   204      */
   207     int mExceedsMaxMmsRecipientsBy;
   205     int mExceedsMaxMmsRecipientsBy;
       
   206     
       
   207     /**
       
   208      * Number of addresses present.
       
   209      */
       
   210     int mAddressCount;
       
   211 #ifdef UNIEDITOR_UNIT_TEST
       
   212     friend class TestMsgUnifiedEditorAddress;
       
   213 #endif
   208     };
   214     };
   209 
   215 
   210 #endif //MSG_UNIFIED_EDITOR_ADDRESS_H
   216 #endif //MSG_UNIFIED_EDITOR_ADDRESS_H