phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon_s.cpp
changeset 21 92ab7f8d0eab
child 22 6bb1b21d2484
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  *
       
    16  */
       
    17 
       
    18 #include "cpplugincommon.h"
       
    19 #include "cppluginlogging.h"
       
    20 #include <hbglobal.h>
       
    21 #include <cppluginplatinterface.h>
       
    22 #include <QPluginLoader>
       
    23 
       
    24 
       
    25 CpPluginPlatInterface* Tools::loadCpPlugin(const QString& name)
       
    26 {
       
    27     QPluginLoader loader("C:/ControlPanel/debug/bin/"+name+".dll");
       
    28     return qobject_cast<CpPluginPlatInterface*> (loader.instance());
       
    29 }
       
    30 
       
    31 bool Tools::unloadCpPlugin(const QString& name)
       
    32 {
       
    33     QPluginLoader loader("C:/ControlPanel/debug/bin/"+name+".dll");
       
    34     return loader.unload();
       
    35 }
       
    36 
       
    37 bool Tools::voipSupported()
       
    38 {
       
    39     DPRINT << "DUMMY WRAPPER";
       
    40     return true;
       
    41 }
       
    42 
       
    43 bool Tools::videoSupported()
       
    44 {
       
    45     DPRINT << "DUMMY WRAPPER";
       
    46     return true;
       
    47 }
       
    48 
       
    49 /*!
       
    50   Tools::convertEtelMobileServiceCode.
       
    51 */
       
    52 BasicServiceGroups Tools::convertEtelMobileServiceCode(int serviceCode)
       
    53 {
       
    54     DPRINT << "DUMMY WRAPPER: DEFAULT code";
       
    55     return Unknown;
       
    56 }
       
    57 
       
    58 
       
    59 /*!
       
    60   Tools::errorCodeTextMapping.
       
    61  */
       
    62 bool Tools::errorCodeTextMapping(const int errorcode, QString &errorText)
       
    63 {
       
    64     DPRINT << "DUMMY WRAPPER";
       
    65     errorText.clear();
       
    66     bool errorTextFound(true);
       
    67     errorText = hbTrId("Not done");
       
    68     return errorTextFound;
       
    69 }
       
    70 
       
    71 
       
    72 CpSettingsWrapper::CpSettingsWrapper(QObject *parent): 
       
    73     QObject(parent)
       
    74 {
       
    75     DPRINT << "DUMMY WRAPPER";
       
    76 }
       
    77 
       
    78 CpSettingsWrapper::~CpSettingsWrapper()
       
    79 {
       
    80     DPRINT << "DUMMY WRAPPER";
       
    81 }
       
    82 
       
    83 bool CpSettingsWrapper::showCallDuration()
       
    84 {
       
    85     DPRINT << "DUMMY WRAPPER";
       
    86     return 0;
       
    87 }
       
    88 
       
    89 int CpSettingsWrapper::setShowCallDuration(bool value)
       
    90 {
       
    91     DPRINT << "DUMMY WRAPPER: value:" << value;
       
    92     return 0;
       
    93 }
       
    94 
       
    95 void CpSettingsWrapper::readSoftRejectText(QString &text, bool &userDefined)
       
    96 {
       
    97     DPRINT << "DUMMY WRAPPER: text:" << text << " ,userDefined:" << userDefined;
       
    98 }
       
    99 
       
   100 int CpSettingsWrapper::writeSoftRejectText(const QString &text, bool userDefined)
       
   101 {
       
   102     DPRINT << "DUMMY WRAPPER: text:" << text << " ,userDefined:" << userDefined;
       
   103     return 0;
       
   104 }
       
   105 
       
   106 bool CpSettingsWrapper::numberGroupingSupported() const
       
   107 {
       
   108     DPRINT << "DUMMY WRAPPER";
       
   109     return true;
       
   110 }
       
   111 
       
   112 
       
   113 bool CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled()
       
   114 {
       
   115     bool enabled = false;
       
   116     DPRINT << "DUMMY WRAPPER: enabled: " << enabled;
       
   117     return enabled;
       
   118 }
       
   119 
       
   120 
       
   121 bool CpSettingsWrapper::isPhoneOffline() const
       
   122 {
       
   123     bool enabled = false;
       
   124     DPRINT << "DUMMY WRAPPER: enabled: " << enabled;
       
   125     return enabled;
       
   126 }