satui/satapp/inc/csatuiobserver.h
changeset 15 d7fc66ccd6fb
parent 12 ae8abd0db65c
equal deleted inserted replaced
13:e32024264ebb 15:d7fc66ccd6fb
     1 /*
     1 /*
     2 * Copyright (c) 2002-20010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    21 #define CSATUIOBSERVER_H
    21 #define CSATUIOBSERVER_H
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <msatuiobserver.h>
    24 #include <msatuiobserver.h>
    25 #include <rsatuisession.h>
    25 #include <rsatuisession.h>
    26 #include <RSatSession.h>
    26 #include <rsatsession.h>
       
    27 #include <QString>
    27 #include "satappcommonconstant.h"
    28 #include "satappcommonconstant.h"
    28 // CONSTANTS
    29 // CONSTANTS
    29 //256 max length-header information fields
    30 //256 max length-header information fields
    30 const TInt KAdditionalInfoMaxSize = 244;
    31 const TInt KAdditionalInfoMaxSize = 244;
    31 const TInt KMaxPlayToneLength = 50;
    32 const TInt KMaxPlayToneLength = 50;
    74 
    75 
    75         /**
    76         /**
    76         * Sets the UI.
    77         * Sets the UI.
    77         * @param aImplementer Pointer to be set.
    78         * @param aImplementer Pointer to be set.
    78         */
    79         */
    79         void SetImplementer(MSatUiActionImplementer* aImplementer);
    80         void SetImplementer( MSatUiActionImplementer* aImplementer );
    80 
    81 
    81         /**
    82         /**
    82         * Returns the adapter provided by SatCli.
    83         * Returns the adapter provided by SatCli.
    83         */
    84         */
    84         MSatUiAdapter* Adapter();
    85         MSatUiAdapter* Adapter();
    87         /**
    88         /**
    88         * Return current profile state.
    89         * Return current profile state.
    89         * @return current profile state.
    90         * @return current profile state.
    90         */
    91         */
    91         TInt ProfileState();
    92         TInt ProfileState();
       
    93 
       
    94         /**
       
    95         * ConnectRSatSession.
       
    96         * 
       
    97         */
       
    98         void ConnectRSatSessionL();
       
    99 
       
   100         /**
       
   101         * DisconnectRSatSession
       
   102         * 
       
   103         */
       
   104         void DisconnectRSatSession();
    92 
   105 
    93     public: // Functions from base classes
   106     public: // Functions from base classes
    94 
   107 
    95          /**
   108          /**
    96         * From MSatUiObserver Notification of the SAT Display Text command.
   109         * From MSatUiObserver Notification of the SAT Display Text command.
   297         * Gets default text's resource id
   310         * Gets default text's resource id
   298         * @param aCommandId Identifies the command
   311         * @param aCommandId Identifies the command
   299         * @param aControl Used only for MoSm and Call Control
   312         * @param aControl Used only for MoSm and Call Control
   300         * @return Resource id for the default text
   313         * @return Resource id for the default text
   301         */
   314         */
   302         TInt DefaultAlphaIdL(
   315         void DefaultAlphaId(
   303             const TSatSNotifyCommand aCommandId,
   316             const TSatSNotifyCommand aCommandId,
   304             const TSatControlResult aControlResult) const;
   317             const TSatControlResult aControlResult,
       
   318             QString &resource) const;
   305 
   319 
   306         /**
   320         /**
   307         * Get size for the icon in popup window.
   321         * Get size for the icon in popup window.
   308         * @param aSize Reference to the size of icon place.
   322         * @param aSize Reference to the size of icon place.
   309         * @param aIconCommand Dialog information
   323         * @param aIconCommand Dialog information
   349     private: // Data
   363     private: // Data
   350 
   364 
   351         // play tone sequence
   365         // play tone sequence
   352         TBuf8<KMaxPlayToneLength> iSequence;
   366         TBuf8<KMaxPlayToneLength> iSequence;
   353 
   367 
   354 
       
   355         //Ref: Interface to the UI-part
   368         //Ref: Interface to the UI-part
   356         MSatUiActionImplementer* iActionImplementer;
   369         MSatUiActionImplementer* iActionImplementer;
   357 
   370 
   358         // own: used with refresh started and finished
   371         // own: used with refresh started and finished
   359         TBool iRefresh;
   372         TBool iRefresh;
   368         RSatSession iSatSession;
   381         RSatSession iSatSession;
   369 
   382 
   370         //Own: Current Iconididentifier
   383         //Own: Current Iconididentifier
   371         TInt iIconIdIdentifier;
   384         TInt iIconIdIdentifier;
   372 
   385 
   373         //Own: SetupMenu and SelectItem items icon
       
   374         //CAknIconArray* iItemIcons;
       
   375 
       
   376         //Own: Icon fetching handler
       
   377         //CSatUiIconHandler* iIconHandler;
       
   378 
       
   379         // own: used to signal that icons are supported
   386         // own: used to signal that icons are supported
   380         TBool iIconSupport;
   387         TBool iIconSupport;
   381 
   388 
   382         //Own: used to indicate if ESatSClearScreenEvent occurs
   389         //Own: used to indicate if ESatSClearScreenEvent occurs
   383         TBool iClearScreenEvent;
   390         TBool iClearScreenEvent;