messagingapp/msgui/unifiedviewer/inc/univiewertextitem.h
changeset 34 84197e66a4bd
parent 31 ebfee66fde93
child 44 36f374c67aa8
equal deleted inserted replaced
31:ebfee66fde93 34:84197e66a4bd
    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.
    73      * Called when option menu is closed.
    75      * Called when option menu is closed.
    74      */
    76      */
    75     void menuClosed();
    77     void menuClosed();
    76 
    78 
    77 
    79 
    78     //handlers for phone number specific menu items.
    80     /**
       
    81      * handlers for phone number specific menu items.
       
    82      */
    79     void call();
    83     void call();
    80     void sendMessage();    
    84     void sendMessage();    
    81 
    85 
    82     //handlers for e-mail specific menu items.
    86     /**
       
    87      * handlers for e-mail specific menu items.
       
    88      */
    83     void createEmail();
    89     void createEmail();
    84 
    90 
    85     //handlers for url specific menu items.
    91     /**
       
    92      * handlers for url specific menu items.
       
    93      */
    86     void openLink();
    94     void openLink();
    87     void addToBookmarks();
    95     void addToBookmarks();
    88 
    96 
    89     //common handlers.
    97     /**
       
    98      * common handlers.
       
    99      */
    90     void openContactInfo();
   100     void openContactInfo();
    91     void saveToContacts();
   101     void saveToContacts();
    92     void copyToClipboard();
   102     void copyToClipboard();
    93     
   103     
    94     /**
   104     /**
   103      * 32-bit integers.
   113      * 32-bit integers.
   104      * @param errorCode qint32
   114      * @param errorCode qint32
   105      */
   115      */
   106     void handleError(int errorCode, const QString& errorMessage);
   116     void handleError(int errorCode, const QString& errorMessage);
   107 
   117 
   108     //called after service request is completed.
   118     /**
       
   119      * called after service request is completed.
       
   120      */
   109     void onServiceRequestCompleted();
   121     void onServiceRequestCompleted();
   110     
   122     
   111 signals:
   123 signals:
   112     /**
   124     /**
   113      * this signal is emitted when send message is triggered for a highlighted number.
   125      * this signal is emitted when send message is triggered for a highlighted number.