messagingapp/msgui/unifiedviewer/inc/univiewertextitem.h
branchGCC_SURGE
changeset 47 5b14749788d7
parent 27 e4592d119491
parent 44 36f374c67aa8
equal deleted inserted replaced
35:a32b19fb291e 47:5b14749788d7
    30     ~UniViewerTextItem();
    30     ~UniViewerTextItem();
    31     void setFindOn(bool on = true);
    31     void setFindOn(bool on = true);
    32     void setText(const QString& text);
    32     void setText(const QString& text);
    33 
    33 
    34 protected:
    34 protected:
    35     void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
    35     /**
    36     void mousePressEvent(QGraphicsSceneMouseEvent *event);
    36      * Gesture event, overridden from base class.
       
    37      */
       
    38     void gestureEvent(QGestureEvent* event);
    37 
    39 
    38 private:
    40 private:
    39 
    41 
    40     /**
    42     /**
    41      * Applies find rule and highlights text.
    43      * Applies find rule and highlights text.
    52     void addUrlMenu(HbMenu* contextMenu,const QString& data);
    54     void addUrlMenu(HbMenu* contextMenu,const QString& data);
    53     
    55     
    54     /**
    56     /**
    55      * short tap handler.
    57      * short tap handler.
    56      * @param anchor anchor at cursor position.
    58      * @param anchor anchor at cursor position.
       
    59      * @param pos tapping position
    57      */
    60      */
    58     void shortTapAction(QString anchor);    
    61     void handleShortTap(QString anchor,const QPointF& pos);    
    59     
    62     
    60     /**
    63     /**
    61      * Helper method to highlight find item on tap.
    64      * Helper method to highlight find item on tap.
    62      * @param highlight, if true highlight else dont.
    65      * @param highlight, if true highlight else dont.
    63      */
    66      */
    73      * Called when option menu is closed.
    76      * Called when option menu is closed.
    74      */
    77      */
    75     void menuClosed();
    78     void menuClosed();
    76 
    79 
    77 
    80 
    78     //handlers for phone number specific menu items.
    81     /**
       
    82      * handlers for phone number specific menu items.
       
    83      */
    79     void call();
    84     void call();
    80     void sendMessage();    
    85     void sendMessage();    
    81 
    86 
    82     //handlers for e-mail specific menu items.
    87     /**
       
    88      * handlers for e-mail specific menu items.
       
    89      */
    83     void createEmail();
    90     void createEmail();
    84 
    91 
    85     //handlers for url specific menu items.
    92     /**
       
    93      * handlers for url specific menu items.
       
    94      */
    86     void openLink();
    95     void openLink();
    87     void addToBookmarks();
    96     void addToBookmarks();
    88 
    97 
    89     //common handlers.
    98     /**
       
    99      * common handlers.
       
   100      */
    90     void openContactInfo();
   101     void openContactInfo();
    91     void saveToContacts();
   102     void saveToContacts();
    92     void copyToClipboard();
   103     void copyToClipboard();
    93     
   104     
    94     /**
   105     /**
   103      * 32-bit integers.
   114      * 32-bit integers.
   104      * @param errorCode qint32
   115      * @param errorCode qint32
   105      */
   116      */
   106     void handleError(int errorCode, const QString& errorMessage);
   117     void handleError(int errorCode, const QString& errorMessage);
   107 
   118 
   108     //called after service request is completed.
   119     /**
       
   120      * called after service request is completed.
       
   121      */
   109     void onServiceRequestCompleted();
   122     void onServiceRequestCompleted();
   110     
   123     
   111 signals:
   124 signals:
   112     /**
   125     /**
   113      * this signal is emitted when send message is triggered for a highlighted number.
   126      * this signal is emitted when send message is triggered for a highlighted number.