messagingapp/msgui/unifiededitor/inc/msgunieditorsubject.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
    19 
    19 
    20 #include <hbwidget.h>
    20 #include <hbwidget.h>
    21 
    21 
    22 #include "convergedmessage.h"
    22 #include "convergedmessage.h"
    23 
    23 
    24 class HbTextItem;
       
    25 class HbLineEdit;
       
    26 class HbIconItem;
    24 class HbIconItem;
    27 class UniEditorGenUtils;
    25 class UniEditorGenUtils;
       
    26 class MsgUnifiedEditorLineEdit;
    28 
    27 
    29 class MsgUnifiedEditorSubject : public HbWidget
    28 class MsgUnifiedEditorSubject : public HbWidget
    30     {
    29     {
    31     Q_OBJECT
    30     Q_OBJECT
    32 
    31 
    69      */
    68      */
    70     void setText(const QString& text);
    69     void setText(const QString& text);
    71 
    70 
    72 signals:
    71 signals:
    73     /**
    72     /**
    74      * Emitted when MMS content is added or removed
    73      * Emitted when subject/priority content is added or removed
    75      */
    74      */
    76     void mmContentAdded(bool isAdded);
    75     void contentChanged();
    77     
       
    78     /**
       
    79      * Emitted when subject size changes
       
    80      */
       
    81     void sizeChanged(int aSize);
       
    82     
    76     
    83 private slots:
    77 private slots:
    84     /**
    78     /**
    85      * called when textChanged signal is emitted by the line edit
    79      * called when contentsChanged signal is emitted by the line edit
    86      */
    80      */
    87     void onTextChanged(const QString&);
    81     void onContentsAdded(const QString&);
    88     
    82     
    89     /**
    83     /**
    90      * Called when textChanged signal is emitted by the line edit
    84      * Called when contentsChanged signal is emitted by the line edit
    91      * Checks for empty text content 
    85      * Checks for empty text content 
    92      */
    86      */
    93     void onTextRemoved(const QString& text);
    87     void onContentsRemoved(const QString& text);
    94     
    88     
    95 private:
    89 private:
    96     /**
    90     /**
    97      * Check if email over sms is supported. If yes, subject is a valid sms field
    91      * Check if email over sms is supported. If yes, subject is a valid sms field
    98      * @return true, if email over sms is supported.
    92      * @return true, if email over sms is supported.
   105      * plug in path.
    99      * plug in path.
   106      */
   100      */
   107     QString mPluginPath;
   101     QString mPluginPath;
   108     
   102     
   109     /**
   103     /**
   110      * label to show sub: string.
       
   111      */
       
   112     HbTextItem *mSubjectLabel;
       
   113     
       
   114     /**
       
   115      * line edit to input subject.
   104      * line edit to input subject.
   116      */
   105      */
   117     HbLineEdit* mSubjectEdit;
   106     MsgUnifiedEditorLineEdit* mSubjectEdit;
   118     
   107     
   119     /**
   108     /**
   120      * icon item to display priority.
   109      * icon item to display priority.
   121      */
   110      */
   122     HbIconItem* mPriorityIcon;
   111     HbIconItem* mPriorityIcon;