phoneengine/phoneservices/inc/dialservice.h
changeset 56 5bcb308bd24d
parent 46 bc5a64e5bc3c
child 74 d1c62c765e48
equal deleted inserted replaced
46:bc5a64e5bc3c 56:5bcb308bd24d
    25 *            }
    25 *            }
    26 *            QList<QVariant> args;
    26 *            QList<QVariant> args;
    27 *            args << QString("0501234567"); // number or address
    27 *            args << QString("0501234567"); // number or address
    28 *            // add contactId and serviceId when needed by operation
    28 *            // add contactId and serviceId when needed by operation
    29 *            request->setArguments(args);
    29 *            request->setArguments(args);
    30 *            if (request->send()) {
    30 *            QVariant retValue;
       
    31 *            if (request->send(retValue)) {
    31 *               //error
    32 *               //error
    32 *            }
    33 *            }
    33 *
    34 *
    34 *            Note:
    35 *            Note:
    35 *            
    36 *            
    79         
    80         
    80         This method makes a video call dial command to
    81         This method makes a video call dial command to
    81         Phone Application. It is intended to be used via Qt Highway.
    82         Phone Application. It is intended to be used via Qt Highway.
    82 
    83 
    83     */
    84     */
    84     void dialVideo(const QString& number);
    85     int dialVideo(const QString& number);
    85 
    86 
    86     /*!
    87     /*!
    87         \fn dial(const QString& number)
    88         \fn dial(const QString& number)
    88         
    89         
    89         This method makes a video call dial command to
    90         This method makes a video call dial command to
    90         Phone Application. It is intended to be used via Qt Highway.
    91         Phone Application. It is intended to be used via Qt Highway.
    91         Caller's name is shown according to the given Phonebook contact
    92         Caller's name is shown according to the given Phonebook contact
    92         identifier.
    93         identifier.
    93     */
    94     */
    94     void dialVideo(const QString& number, int contactId);
    95     int dialVideo(const QString& number, int contactId);
    95     
    96     
    96     /*!
    97     /*!
    97         \fn dialVoip(const QString& address)
    98         \fn dialVoip(const QString& address)
    98         
    99         
    99         This method makes a voip call dial command to
   100         This method makes a voip call dial command to
   100         Phone Application. It is intended to be used via Qt Highway.
   101         Phone Application. It is intended to be used via Qt Highway.
   101     */
   102     */
   102     void dialVoip(const QString& address);
   103     int dialVoip(const QString& address);
   103     
   104     
   104     /*!
   105     /*!
   105         \fn dialVoip(const QString& address, int contactId)
   106         \fn dialVoip(const QString& address, int contactId)
   106         
   107         
   107         This method makes a voip call dial command to
   108         This method makes a voip call dial command to
   108         Phone Application. It is intended to be used via Qt Highway.
   109         Phone Application. It is intended to be used via Qt Highway.
   109         Caller's name is shown according to the given Phonebook contact
   110         Caller's name is shown according to the given Phonebook contact
   110         identifier.
   111         identifier.
   111 
   112 
   112     */
   113     */
   113     void dialVoip(const QString& address, int contactId);
   114     int dialVoip(const QString& address, int contactId);
   114     
   115     
   115     /*!
   116     /*!
   116         \fn dialVoipService(const QString& address, int contactId)
   117         \fn dialVoipService(const QString& address, int contactId)
   117         
   118         
   118         This method makes a voip call dial command to
   119         This method makes a voip call dial command to
   119         Phone Application. It is intended to be used via Qt Highway.
   120         Phone Application. It is intended to be used via Qt Highway.
   120         Call is made by given service (id).
   121         Call is made by given service (id).
   121     */
   122     */
   122     void dialVoipService(const QString& address, int serviceId);
   123     int dialVoipService(const QString& address, int serviceId);
   123     
   124     
   124     /*!
   125     /*!
   125         \fn dialVoipService(const QString& address, int serviceId, int contactId)
   126         \fn dialVoipService(const QString& address, int serviceId, int contactId)
   126         
   127         
   127         This method makes a voip call dial command to
   128         This method makes a voip call dial command to
   128         Phone Application. It is intended to be used via Qt Highway.
   129         Phone Application. It is intended to be used via Qt Highway.
   129         Call is made by given service (id).
   130         Call is made by given service (id).
   130         Caller's name is shown according to the given Phonebook contact
   131         Caller's name is shown according to the given Phonebook contact
   131         identifier.
   132         identifier.
   132     */
   133     */
   133     void dialVoipService(const QString& address, int serviceId, int contactId);
   134     int dialVoipService(const QString& address, int serviceId, int contactId);
   134     
   135     
   135 private:
   136 private:
   136 	
   137 	
   137     /*!
   138     /*!
   138         \fn QString modifyPhoneNumber(QString& number)
   139         \fn QString modifyPhoneNumber(QString& number)
   152         \fn QString japanPrefixModifications(QString& number)
   153         \fn QString japanPrefixModifications(QString& number)
   153         
   154         
   154         Returns a string that has japan specific configuration modifications made 
   155         Returns a string that has japan specific configuration modifications made 
   155     */
   156     */
   156     QString japanPrefixModifications(const QString &number) Q_REQUIRED_RESULT;
   157     QString japanPrefixModifications(const QString &number) Q_REQUIRED_RESULT;
       
   158 	
       
   159 	
       
   160     /*!
       
   161         \fn bool hasCapability()
       
   162         
       
   163         Checks if the client has the required capabilities
       
   164     */
       
   165     bool hasCapability();
   157 
   166 
   158 
   167 
   159 private:
   168 private:
   160     MPECallControlIF  &m_call;
   169     MPECallControlIF  &m_call;
   161     MPECallSettersIF  &m_parameters;
   170     MPECallSettersIF  &m_parameters;