phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetengine_s.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 40 bab96b7ed1a4
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     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 "infowidgetengine.h"
       
    19 #include "infowidgetlogging.h"
       
    20 
       
    21 /*!
       
    22    InfoWidgetEngine::InfoWidgetEngine
       
    23  */
       
    24 InfoWidgetEngine::InfoWidgetEngine(QObject *parent): 
       
    25     QObject(parent)
       
    26 {
       
    27     DPRINT;
       
    28 }
       
    29 
       
    30 /*!
       
    31    InfoWidgetEngine::~InfoWidgetEngine
       
    32  */
       
    33 InfoWidgetEngine::~InfoWidgetEngine()
       
    34 {
       
    35     DPRINT;
       
    36 }    
       
    37 
       
    38 /*!
       
    39    InfoWidgetEngine::logModelData
       
    40    
       
    41    Utility function for logging model data
       
    42  */
       
    43 void InfoWidgetEngine::logModelData()
       
    44 {
       
    45     DPRINT << ": mcn name: " << m_modelData.mcnName(); 
       
    46     DPRINT << ": service provider name: " << m_modelData.serviceProviderName();
       
    47     DPRINT << ": homezone text tag: " << m_modelData.homeZoneTextTag();
       
    48     
       
    49     DPRINT << ": mcn type: " << m_modelData.mcnIndicatorType(); 
       
    50     DPRINT << ": active line: " << m_modelData.activeLine(); 
       
    51     DPRINT << ": homezone indicator type: " << m_modelData.homeZoneIndicatorType(); 
       
    52 } 
       
    53 
       
    54 /*!
       
    55    InfoWidgetEngine::modelData
       
    56    
       
    57    Getter for model data. 
       
    58  */
       
    59 const InfoWidgetEngine::ModelData& InfoWidgetEngine::modelData() const
       
    60 {
       
    61     DPRINT;
       
    62     return m_modelData; 
       
    63 }
       
    64 
       
    65 /*!
       
    66    InfoWidgetEngine::setModelData
       
    67    
       
    68    Enables setting model initial data to engine.   
       
    69  */
       
    70 void InfoWidgetEngine::setModelData(const InfoWidgetEngine::ModelData &data)
       
    71 {
       
    72     DPRINT; 
       
    73     m_modelData = data;
       
    74 }
       
    75 
       
    76 /*!
       
    77    InfoWidgetEngine::updateNetworkDataToModel
       
    78  */
       
    79 void InfoWidgetEngine::updateNetworkDataToModel()
       
    80 {
       
    81     DPRINT;
       
    82 }
       
    83 
       
    84 /*!
       
    85    InfoWidgetEngine::updateSatDataToModel
       
    86  */
       
    87 void InfoWidgetEngine::updateSatDataToModel()
       
    88 {
       
    89     DPRINT;
       
    90 }
       
    91 
       
    92 /*!
       
    93    InfoWidgetEngine::updateLineDataToModel
       
    94  */
       
    95 void InfoWidgetEngine::updateLineDataToModel()
       
    96 {
       
    97     DPRINT;
       
    98 }
       
    99 
       
   100 /*!
       
   101    InfoWidgetEngine::handleNetworkError
       
   102  */
       
   103 void InfoWidgetEngine::handleNetworkError(int operation, int errorCode)
       
   104 {
       
   105     DPRINT << ": operation: " << operation << " error code: " << errorCode; 
       
   106 }
       
   107 
       
   108 /*!
       
   109    InfoWidgetEngine::handleSatError
       
   110  */
       
   111 void InfoWidgetEngine::handleSatError(int operation, int errorCode)
       
   112 {
       
   113     DPRINT << ": operation: " << operation << " error code: " << errorCode; 
       
   114 }
       
   115 
       
   116 /*!
       
   117    InfoWidgetEngine::handleLineError
       
   118  */
       
   119 void InfoWidgetEngine::handleLineError(int operation, int errorCode)
       
   120 {
       
   121     DPRINT << ": operation: " << operation << " error code: " << errorCode; 
       
   122 }
       
   123 
       
   124 // End of File. 
       
   125