satengine/SatServer/Commands/RefreshRequiredCmd/inc/CRefreshRequiredHandler.h
branchRCL_3
changeset 18 594d59766373
parent 0 ff3b6d0fd310
equal deleted inserted replaced
17:c58fd5f0c240 18:594d59766373
     1 /*
     1 /*
     2 * Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2002-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".
   100         void UiLaunchFailed();
   100         void UiLaunchFailed();
   101 
   101 
   102     private:
   102     private:
   103 
   103 
   104         /**
   104         /**
   105         * The indicated AID may be of four states.  
       
   106         * We treat it as the Active AID case if the indicated AID is NULL. 
       
   107         */
       
   108         enum TAidState
       
   109             {
       
   110             EAidInvalid,
       
   111             EAidActive,
       
   112             EAidNotActive,
       
   113             EAidNull
       
   114             };
       
   115         /**
       
   116         * The header of AID from etelsat is A0 in hex equaled to 160 in decemal.
       
   117         * The second, third and fourth byte of AID is 0. 
       
   118         */    
       
   119         enum TAidBytes
       
   120             {
       
   121             EAid0,
       
   122             EAidA0 = 160
       
   123             };
       
   124 
       
   125     private:
       
   126 
       
   127         /**
       
   128         * C++ default constructor.
   105         * C++ default constructor.
   129         */
   106         */
   130         CRefreshRequiredHandler();
   107         CRefreshRequiredHandler();
   131 
   108 
   132         /**
   109         /**
   176         * the sat request. Note, this replaces TerminalRsp() here.
   153         * the sat request. Note, this replaces TerminalRsp() here.
   177         * @param aRsp RefreshRequired response data package.
   154         * @param aRsp RefreshRequired response data package.
   178         */
   155         */
   179         void RefreshAllowed( const TDesC8& aRsp );
   156         void RefreshAllowed( const TDesC8& aRsp );
   180         
   157         
   181         /**
       
   182         * Get the indicated AID state according to 
       
   183         * the current application's AID. 
       
   184         * @return TAidstate indicating the state of the indicated AID. 
       
   185         */
       
   186         TAidState AidState() const;
       
   187 
       
   188         /**
       
   189         * Check whether the current application's AID is valid. 
       
   190         * @return TBool indicating whether the indicated AID is valid. 
       
   191         * @param aAid RefreshRequired AID data from etelsat.       
       
   192         */
       
   193         TBool IsValidAid( const RSat::TAid& aAid ) const;
       
   194     private:    // Data
   158     private:    // Data
   195 
   159 
   196         // Refresh command data.
   160         // Refresh command data.
   197         RSat::TRefreshV2 iRefreshRequiredData;
   161         RSat::TRefreshV2 iRefreshRequiredData;
   198 
   162 
   220         // Count of refresh clients queried refresh allow but not yet answered.
   184         // Count of refresh clients queried refresh allow but not yet answered.
   221         TInt iRefreshQueryClientCount;
   185         TInt iRefreshQueryClientCount;
   222 
   186 
   223         // Response of refresh query.
   187         // Response of refresh query.
   224         TBool iAllowRefresh;
   188         TBool iAllowRefresh;
   225 
   189         
   226     };
   190     };
   227 
   191 
   228 #endif      // CREFRESHREQUIREDHANDLER_H
   192 #endif      // CREFRESHREQUIREDHANDLER_H
   229 
   193 
   230 // End of File
   194 // End of File