messagingapp/msgui/unifiededitor/inc/msgmonitor.h
changeset 27 e4592d119491
parent 25 84d9eb65b26f
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
    91 
    91 
    92     /**
    92     /**
    93      * seeker funtion to get max recipient count for mms
    93      * seeker funtion to get max recipient count for mms
    94      */
    94      */
    95     static inline int maxMmsRecipients();
    95     static inline int maxMmsRecipients();
       
    96     
       
    97     /**
       
    98      * get total address count in To, Cc & Bcc fields
       
    99      */
       
   100     static inline int msgAddressCount();
    96 
   101 
    97 public slots:
   102 public slots:
    98     /**
   103     /**
    99      * slot to find any msg type change during editor operations
   104      * slot to handle content change in any editor component
   100      */
   105      */
   101     void checkMsgTypeChange();
   106     void handleContentChange();
   102 
   107 
   103 private:
   108 private:
   104     /**
   109     /**
   105      * setter method to initialize content
   110      * setter method to initialize content
   106      */
   111      */
   107     void init();
   112     void init();
   108 
   113 
   109     /**
   114     /**
   110      * handle size change of editor components
   115      * Determine the projected msg type due to change in editor content
   111      */
   116      */
   112     void updateSizeInfo(HbWidget* aWidget);
   117     ConvergedMessage::MessageType projectedMsgType();
       
   118 
       
   119     /**
       
   120      * update various msg info changes during editing
       
   121      * @param senderWidget, Editor widget which triggered 
       
   122      * content change slot
       
   123      */
       
   124     void updateMsgInfo(HbWidget* senderWidget);
   113     
   125     
   114     /**
   126     /**
   115      * show type change discreet note
   127      * show type change discreet note
   116      */
   128      */
   117     void showPopup(const QString& text);
   129     void showPopup(const QString& text);
   118     
   130     
   119     /**
   131     /**
   120      * accessor for view
   132      * accessor for view
   121      */
   133      */
   122     MsgUnifiedEditorView* view();
   134     MsgUnifiedEditorView* view();
   123         
   135     
       
   136     /**
       
   137      * check editor body for MMS content
       
   138      * @return true if MMS content is present
       
   139      */
       
   140     bool bodyHasMMSContent();
       
   141     
       
   142     /**
       
   143      * check editor subject for MMS content
       
   144      * @return true if MMS content is present
       
   145      */
       
   146     bool subjectHasMMSContent();
       
   147     
       
   148     /**
       
   149      * check editor attachment container for MMS content
       
   150      * @return true if MMS content is present
       
   151      */
       
   152     bool containerHasMMSContent();
       
   153     
       
   154     /**
       
   155      * check for other MMS content criteria
       
   156      * @return true if MMS criteria is met
       
   157      */
       
   158     bool otherMMSCriteriaMet();
       
   159 
   124 private:
   160 private:
       
   161 
   125     /**
   162     /**
   126      * Flag to skip showing the type change popup.
   163      * Flag to skip showing the type change popup.
   127      * Note need to be skipped when an mms is opened from draft.
   164      * Note need to be skipped when an mms is opened from draft.
   128      */
   165      */
   129     bool mSkipNote;
   166     bool mSkipNote;
   160 
   197 
   161     /**
   198     /**
   162      * max recipient count in an sms
   199      * max recipient count in an sms
   163      */
   200      */
   164     static int mMaxMmsRecipients;
   201     static int mMaxMmsRecipients;
       
   202     
       
   203     /**
       
   204      * current msg address count (to + cc + bcc)
       
   205      */
       
   206     static int mMsgCurrAddressCount;
   165 
   207 
   166     /**
   208     /**
   167      * UniEditorGenUtils object
   209      * UniEditorGenUtils object
   168      * Owned
   210      * Owned
   169      */
   211      */