messagingapp/msgui/unifiedviewer/inc/univiewertextitem.h
changeset 27 e4592d119491
parent 25 84d9eb65b26f
child 47 5b14749788d7
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
    19 
    19 
    20 #ifndef UNIVIEWERTEXTITEM_H
    20 #ifndef UNIVIEWERTEXTITEM_H
    21 #define UNIVIEWERTEXTITEM_H
    21 #define UNIVIEWERTEXTITEM_H
    22 
    22 
    23 #include <HbTextEdit>
    23 #include <HbTextEdit>
    24 #include <xqappmgr.h>
       
    25 
       
    26 //forward declarations
       
    27 class QRegExp;
       
    28 class XQAiwRequest;
       
    29 
    24 
    30 class UniViewerTextItem : public HbTextEdit
    25 class UniViewerTextItem : public HbTextEdit
    31 {
    26 {
    32     Q_OBJECT
    27     Q_OBJECT
    33 public:
    28 public:
    66      * Helper method to highlight find item on tap.
    61      * Helper method to highlight find item on tap.
    67      * @param highlight, if true highlight else dont.
    62      * @param highlight, if true highlight else dont.
    68      */
    63      */
    69     void highlightText(bool highlight);
    64     void highlightText(bool highlight);
    70 	
    65 	
    71     /** Helper method to get contact id against phone number or e-mail id.
       
    72      * @param value phone number or email id.
       
    73      * @param fieldName name of field to be matched.
       
    74      * @param fieldType type of field to be matched.
       
    75      */
       
    76     int resolveContactId(const QString& value,
       
    77                          const QString& fieldName, 
       
    78                          const QString& fieldType);
       
    79 
       
    80 private slots:
    66 private slots:
    81     /**
    67     /**
    82       * called when aboutToShowContextMenu signal is emitted.
    68       * called when aboutToShowContextMenu signal is emitted.
    83       */
    69       */
    84     void aboutToShowContextMenu(HbMenu *contextMenu, const QPointF &pos);
    70     void aboutToShowContextMenu(HbMenu *contextMenu, const QPointF &pos);
   140     QTextCharFormat mFormatHighlight;
   126     QTextCharFormat mFormatHighlight;
   141     QTextCharFormat mFormatNormal;
   127     QTextCharFormat mFormatNormal;
   142 
   128 
   143     //Current cursor position.
   129     //Current cursor position.
   144     int mCursorPos;
   130     int mCursorPos;
   145 
       
   146     XQApplicationManager mAppManager;
       
   147 };
   131 };
   148 
   132 
   149 #endif // UNIVIEWERTEXTITEM_H
   133 #endif // UNIVIEWERTEXTITEM_H