messagingapp/msgui/unifiededitor/inc/msgunieditoraddress.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
    25 
    25 
    26 class HbTextItem;
    26 class HbTextItem;
    27 class HbPushButton;
    27 class HbPushButton;
    28 class HbLineEdit;
    28 class HbLineEdit;
    29 class MsgUnifiedEditorLineEdit;
    29 class MsgUnifiedEditorLineEdit;
    30 class MsgUiUtilsManager;
       
    31 
    30 
    32 class MsgUnifiedEditorAddress : public HbWidget
    31 class MsgUnifiedEditorAddress : public HbWidget
    33     {
    32     {
    34     Q_OBJECT
    33     Q_OBJECT
    35 
    34 
    60 
    59 
    61     /**
    60     /**
    62      * setter method to set address
    61      * setter method to set address
    63      */
    62      */
    64     void setAddresses(ConvergedMessageAddressList addrlist);
    63     void setAddresses(ConvergedMessageAddressList addrlist);
       
    64     
       
    65     /**
       
    66      * Get amount of digits to be used in contact matching
       
    67      */
       
    68     static int contactMatchDigits();
    65         
    69         
    66 signals:
    70 signals:
    67     /**
    71     /**
    68      * Emitted when send button from virtual ITUT is pressed.
    72      * Emitted when send button from virtual ITUT is pressed.
    69      */
    73      */
    70     void sendMessage();
    74     void sendMessage();
    71 
    75 
    72     /**
    76     /**
    73      * Emitted when MMS content is added or removed
    77      * Emitted when content is added or removed
    74      */
    78      */
    75     void mmContentAdded(bool isAdded);
    79     void contentChanged();
    76 
    80 
    77 private slots:
    81 private slots:
    78    
    82    
    79     /**
    83     /**
    80      * called after selection from pbk.
    84      * called after selection from pbk.
    81      */
    85      */
    82     void contactsFetched(const QVariant& contacts);
    86     void fetchContacts();
       
    87     /**
       
    88      * Slot for handling valid returns from the phonebook contacts fetched.
       
    89      */
       
    90     void handleOk(const QVariant& result);
       
    91     
       
    92     /**
       
    93      * Slot for handling errors. Error ids are provided as 
       
    94      */
       
    95     void handleError(int errorCode, const QString& errorMessage);
    83 
    96 
    84     /**
    97     /**
    85      * Called when textChanged signal is emitted by the line edit
    98      * Called when contentsChanged signal is emitted by the line edit
    86      */
    99      */
    87     void onTextChanged(const QString&);
   100     void onContentsAdded(const QString&);
    88 
   101 
    89     /**
   102     /**
    90      * Called when textChanged signal is emitted by the line edit
   103      * Called when contentsChanged signal is emitted by the line edit
    91      * Checks for empty text content
   104      * Checks for empty text content
    92      */
   105      */
    93     void onTextRemoved(const QString& text);
   106     void onContentsRemoved(const QString& text);
    94 
   107 
    95 private:
   108 private:
    96     /**
   109     /**
    97      * Remove edit-field's user-deleted addresses from Map
   110      * Remove edit-field's user-deleted addresses from Map
    98      */
   111      */
   126 
   139 
   127     /**
   140     /**
   128      * address map.
   141      * address map.
   129      */
   142      */
   130     QMap<QString, QString> mAddressMap;
   143     QMap<QString, QString> mAddressMap;
   131 
   144    
   132     /**
       
   133      * MsgUiUtils Manager for phonebook operations
       
   134      * Not Owned
       
   135      */
       
   136     MsgUiUtilsManager *mUtilsManager;
       
   137     };
   145     };
   138 
   146 
   139 #endif //UNIFIED_EDITOR_ADDRESS_H
   147 #endif //UNIFIED_EDITOR_ADDRESS_H