phoneengine/phoneservices/inc/dialservicedepricated.h
changeset 50 377c906a8701
parent 30 ebdbd102c78a
equal deleted inserted replaced
46:bc5a64e5bc3c 50:377c906a8701
    24 #include <QString>
    24 #include <QString>
    25 #include <xqserviceprovider.h>
    25 #include <xqserviceprovider.h>
    26 #include "mpecallcontrolif.h"
    26 #include "mpecallcontrolif.h"
    27 #include "mpecallsettersif.h"
    27 #include "mpecallsettersif.h"
    28 
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class XQSettingsManager;
    29 class DialServiceDepricated : public XQServiceProvider
    31 class DialServiceDepricated : public XQServiceProvider
    30 {
    32 {
    31     Q_OBJECT
    33     Q_OBJECT
    32 public:
    34 public:
    33     DialServiceDepricated(MPECallControlIF &call, MPECallSettersIF &parameters, QObject *parent = 0);
    35     DialServiceDepricated(MPECallControlIF &call, MPECallSettersIF &parameters, QObject *parent = 0);
    34     ~DialServiceDepricated();
    36     ~DialServiceDepricated();
    35     
    37     
    36 public slots:
    38 public slots:
    37     /*!
    39     
    38         \fn dial(const QString& number)
    40     //deprecated
    39         
       
    40         This method makes a cellular switched dial command to
       
    41         Phone Application. It is intended to be used via Qt Highway.
       
    42         
       
    43         Usage example:
       
    44         XQServiceRequest snd("com.nokia.services.telephony","dial(QString)");
       
    45         snd << "0501234567";        
       
    46     */
       
    47     int dial(const QString& number);
    41     int dial(const QString& number);
    48     
    42     
    49     /*!
    43     //deprecated
    50         \fn dial(const QString& number)
       
    51         
       
    52         This method makes a cellular switched dial command to
       
    53         Phone Application. It is intended to be used via Qt Highway.
       
    54         Caller's name is shown according to the given Phonebook contact
       
    55         identifier.
       
    56         
       
    57         Usage example:
       
    58         XQServiceRequest snd("com.nokia.services.telephony","dial(QString,int)");
       
    59         snd << "0501234567" << 123456;        
       
    60     */
       
    61     int dial(const QString& number, int contactId);
    44     int dial(const QString& number, int contactId);
    62     
    45     
    63     /*!
    46     //deprecated
    64         \fn dialVideo(const QString& number)
       
    65         
       
    66         This method makes a video call dial command to
       
    67         Phone Application. It is intended to be used via Qt Highway.
       
    68         
       
    69         Usage example:
       
    70         XQServiceRequest snd("com.nokia.services.telephony","dial(QString)");
       
    71         snd << "0501234567";        
       
    72     */
       
    73     void dialVideo(const QString& number);
    47     void dialVideo(const QString& number);
    74 
    48 
    75     /*!
    49     //deprecated
    76         \fn dial(const QString& number)
       
    77         
       
    78         This method makes a video call dial command to
       
    79         Phone Application. It is intended to be used via Qt Highway.
       
    80         Caller's name is shown according to the given Phonebook contact
       
    81         identifier.
       
    82         
       
    83         Usage example:
       
    84         XQServiceRequest snd("com.nokia.services.telephony","dial(QString,int)");
       
    85         snd << "0501234567" << 123456;        
       
    86     */
       
    87     void dialVideo(const QString& number, int contactId);
    50     void dialVideo(const QString& number, int contactId);
    88     
    51     
    89     /*!
    52     //deprecated
    90         \fn dialVoip(const QString& address)
       
    91         
       
    92         This method makes a voip call dial command to
       
    93         Phone Application. It is intended to be used via Qt Highway.
       
    94         
       
    95         Usage example:
       
    96         XQServiceRequest snd("com.nokia.services.telephony","dialVoip(QString)");
       
    97         snd << "address@domain";        
       
    98     */
       
    99     void dialVoip(const QString& address);
    53     void dialVoip(const QString& address);
   100     
    54     
   101     /*!
    55     //deprecated
   102         \fn dialVoip(const QString& address, int contactId)
       
   103         
       
   104         This method makes a voip call dial command to
       
   105         Phone Application. It is intended to be used via Qt Highway.
       
   106         Caller's name is shown according to the given Phonebook contact
       
   107         identifier.
       
   108         
       
   109         Usage example:
       
   110         XQServiceRequest snd("com.nokia.services.telephony","dialVoip(QString,int)");
       
   111         snd << "address@domain" << 123456;        
       
   112     */
       
   113     void dialVoip(const QString& address, int contactId);
    56     void dialVoip(const QString& address, int contactId);
   114     
    57     
   115     /*!
    58     //deprecated
   116         \fn dialVoipService(const QString& address, int contactId)
       
   117         
       
   118         This method makes a voip call dial command to
       
   119         Phone Application. It is intended to be used via Qt Highway.
       
   120         Call is made by given service (id).
       
   121         
       
   122         Usage example:
       
   123         XQServiceRequest snd("com.nokia.services.telephony","dialVoipService(QString,int)");
       
   124         snd << "address@domain" << 123;        
       
   125     */
       
   126     void dialVoipService(const QString& address, int serviceId);
    59     void dialVoipService(const QString& address, int serviceId);
   127     
    60     
   128     /*!
    61     //deprecated
   129         \fn dialVoipService(const QString& address, int serviceId, int contactId)
       
   130         
       
   131         This method makes a voip call dial command to
       
   132         Phone Application. It is intended to be used via Qt Highway.
       
   133         Call is made by given service (id).
       
   134         Caller's name is shown according to the given Phonebook contact
       
   135         identifier.
       
   136         
       
   137         Usage example:
       
   138         XQServiceRequest snd("com.nokia.services.telephony","dialVoipService(QString,int,int)");
       
   139         snd << "address@domain" << 123 << 12345;        
       
   140     */
       
   141     void dialVoipService(const QString& address, int serviceId, int contactId);
    62     void dialVoipService(const QString& address, int serviceId, int contactId);
   142     
    63     
   143 private:
    64 private:
       
    65 	
       
    66     /*!
       
    67         \fn QString modifyPhoneNumber(QString& number)
       
    68         
       
    69         Returns a modified phone number string. Strips white spaces, makes prefix changes etc. 
       
    70     */
       
    71     QString modifyPhoneNumber(const QString &number) Q_REQUIRED_RESULT;
       
    72 	
   144     /*!
    73     /*!
   145         \fn QString simplified(QString& number)
    74         \fn QString simplified(QString& number)
   146         
    75         
   147         Returns a string that has whitespaces, '(', ')', '-', '[', and ']' chars removed 
    76         Returns a string that has whitespaces, '(', ')', '-', '[', and ']' chars removed 
   148     */
    77     */
   149     static QString simplified(const QString &number) Q_REQUIRED_RESULT;
    78     static QString simplified(const QString &number) Q_REQUIRED_RESULT;
       
    79     
       
    80     /*!
       
    81         \fn QString japanPrefixModifications(QString& number)
       
    82         
       
    83         Returns a string that has japan specific configuration modifications made 
       
    84     */
       
    85     QString japanPrefixModifications(const QString &number) Q_REQUIRED_RESULT;
   150 
    86 
   151 
    87 
   152 private:
    88 private:
   153     MPECallControlIF &m_call;
    89     MPECallControlIF  &m_call;
   154     MPECallSettersIF &m_parameters;    
    90     MPECallSettersIF  &m_parameters;
       
    91     XQSettingsManager *m_settingsManager;
   155 };
    92 };
   156 
    93 
   157 #endif // DIALERSERVICEDEPRICATED_H
    94 #endif // DIALERSERVICEDEPRICATED_H