bearermanagement/mpm/inc/mpmserver.inl
changeset 0 5a93021fdf25
child 20 9c97ad6591ae
child 55 fc7b30ed2058
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2007-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: Inline functions for CMPMServer class
       
    15 *
       
    16 */
       
    17 
       
    18 // -----------------------------------------------------------------------------
       
    19 // TMPMBlackListConnId::Iap
       
    20 // -----------------------------------------------------------------------------
       
    21 //
       
    22 inline TUint32 TMPMBlackListConnId::Iap( TInt aIndex) const
       
    23     {
       
    24     return iBlackListIap[aIndex];
       
    25     }
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // TMPMBlackListConnId::Category
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 inline TBlacklistCategory TMPMBlackListConnId::Category( TInt aIndex) const
       
    32     {
       
    33     return iCategory[aIndex];
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CMPMServer::SetEvents
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 inline void CMPMServer::SetEvents( CMPMConnMonEvents* aEvents )
       
    41     {
       
    42     iEvents = aEvents;
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CMPMServer::Events
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 inline CMPMConnMonEvents* CMPMServer::Events()
       
    51     {
       
    52     return iEvents;
       
    53     }
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // CMPMServer::SetWLANScanRequired
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 inline void CMPMServer::SetWLANScanRequired( const TBool aValue )
       
    60     {
       
    61     iWLANScanRequired = aValue;
       
    62     }
       
    63 
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CMPMServer::IsWLANScanRequired
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 inline TBool CMPMServer::IsWLANScanRequired() const
       
    70     {
       
    71     return iWLANScanRequired;
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CMPMServer::DisconnectQueue
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 inline CArrayPtrFlat<CMPMDisconnectDlg>* CMPMServer::DisconnectQueue()
       
    79     {
       
    80     return iDisconnectQueue;
       
    81     }
       
    82 
       
    83 // -----------------------------------------------------------------------------
       
    84 // CMPMServer::RoamingQueue
       
    85 // -----------------------------------------------------------------------------
       
    86 //
       
    87 inline CArrayPtrFlat<CMPMConfirmDlgRoaming>* CMPMServer::RoamingQueue()
       
    88     {
       
    89     return iRoamingQueue;
       
    90     }
       
    91 
       
    92 // -----------------------------------------------------------------------------
       
    93 // CMPMServer::StartingQueue
       
    94 // -----------------------------------------------------------------------------
       
    95 //
       
    96 inline CArrayPtrFlat<CMPMConfirmDlgStarting>* CMPMServer::StartingQueue()
       
    97     {
       
    98     return iStartingQueue;
       
    99     }
       
   100 
       
   101 // -----------------------------------------------------------------------------
       
   102 // CMPMServer::RemoveFromWlanQueryQueue
       
   103 // -----------------------------------------------------------------------------
       
   104 //
       
   105 inline void CMPMServer::RemoveFromWlanQueryQueue( CMPMWlanQueryDialog* aDlg )
       
   106     {
       
   107     for ( TInt i = 0; i < iWlanQueryQueue->Count(); i++ )
       
   108         {
       
   109         if ( iWlanQueryQueue->At( i ) == aDlg )
       
   110             {
       
   111             iWlanQueryQueue->Delete( i );
       
   112             break;
       
   113             }
       
   114         }
       
   115     }
       
   116 
       
   117 // -----------------------------------------------------------------------------
       
   118 // CMPMServer::WlanQueryQueue
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 inline CArrayPtrFlat<CMPMWlanQueryDialog>* CMPMServer::WlanQueryQueue()
       
   122     {
       
   123     return iWlanQueryQueue;
       
   124     }
       
   125 
       
   126 // -----------------------------------------------------------------------------
       
   127 // CMPMServer::FirstInWlanQueryQueue
       
   128 // -----------------------------------------------------------------------------
       
   129 //
       
   130 inline CMPMWlanQueryDialog* CMPMServer::FirstInWlanQueryQueue()
       
   131     {
       
   132     if ( iWlanQueryQueue->Count() == 0 )
       
   133         return NULL;
       
   134     else
       
   135         return iWlanQueryQueue->At( 0 );
       
   136     }
       
   137 
       
   138 // -----------------------------------------------------------------------------
       
   139 // CMPMServer::ConnectDialogQueue
       
   140 // -----------------------------------------------------------------------------
       
   141 //
       
   142 inline CArrayPtrFlat<CMPMDialog>* CMPMServer::ConnectDialogQueue()
       
   143     {
       
   144     return iConnectDialogQueue;
       
   145     }
       
   146 
       
   147 // -----------------------------------------------------------------------------
       
   148 // CMPMServer::IncrementConnections
       
   149 // -----------------------------------------------------------------------------
       
   150 //
       
   151 inline void CMPMServer::IncrementConnections()
       
   152     {
       
   153     iConnectionCounter++;
       
   154     }
       
   155 
       
   156 
       
   157 // -----------------------------------------------------------------------------
       
   158 // CMPMServer::DecrementConnections
       
   159 // -----------------------------------------------------------------------------
       
   160 //
       
   161 inline void CMPMServer::DecrementConnections()
       
   162     {
       
   163     if ( ConnectionCounter() > 0 )
       
   164         {
       
   165         iConnectionCounter--;
       
   166         }
       
   167     }
       
   168 
       
   169 
       
   170 // -----------------------------------------------------------------------------
       
   171 // CMPMServer::ConnectionCounter
       
   172 // -----------------------------------------------------------------------------
       
   173 //
       
   174 inline TUint CMPMServer::ConnectionCounter()
       
   175     {
       
   176     return iConnectionCounter;
       
   177     }
       
   178 
       
   179 
       
   180 // -----------------------------------------------------------------------------
       
   181 // CMPMServer::SetConnectionCounter
       
   182 // -----------------------------------------------------------------------------
       
   183 //
       
   184 inline void CMPMServer::SetConnectionCounter( const TUint aValue )
       
   185     {
       
   186     iConnectionCounter = aValue;
       
   187     }
       
   188 
       
   189 // -----------------------------------------------------------------------------
       
   190 // CMPMServer::SetUserConnection
       
   191 // -----------------------------------------------------------------------------
       
   192 //
       
   193 inline void CMPMServer::SetUserConnection()
       
   194     {
       
   195     iUserConnection = ETrue;
       
   196     }
       
   197 
       
   198 // -----------------------------------------------------------------------------
       
   199 // CMPMServer::ClearUserConnection
       
   200 // -----------------------------------------------------------------------------
       
   201 //
       
   202 inline void CMPMServer::ClearUserConnection()
       
   203     {
       
   204     iUserConnection = EFalse;
       
   205     }
       
   206 
       
   207 // -----------------------------------------------------------------------------
       
   208 // CMPMServer::UserConnection
       
   209 // -----------------------------------------------------------------------------
       
   210 //
       
   211 inline TBool CMPMServer::UserConnection() const
       
   212     {
       
   213     return iUserConnection;
       
   214     }
       
   215 
       
   216 // -----------------------------------------------------------------------------
       
   217 // CMPMServer::SetUserConnPref
       
   218 // -----------------------------------------------------------------------------
       
   219 //
       
   220 inline void CMPMServer::SetUserConnPref( const TMpmConnPref& aUserConnPref )
       
   221     {
       
   222     iUserConnPref = aUserConnPref;
       
   223     }
       
   224         
       
   225 // -----------------------------------------------------------------------------
       
   226 // CMPMServer::UserConnPref
       
   227 // -----------------------------------------------------------------------------
       
   228 //
       
   229 inline const TMpmConnPref* CMPMServer::UserConnPref() const
       
   230     {
       
   231     return &iUserConnPref;
       
   232     }
       
   233 
       
   234 // -----------------------------------------------------------------------------
       
   235 // CMPMServer::CsIdWatcher
       
   236 // -----------------------------------------------------------------------------
       
   237 //
       
   238 inline CMpmCsIdWatcher* CMPMServer::CsIdWatcher()
       
   239     {
       
   240     return iMpmCsIdWatcher;
       
   241     }
       
   242 
       
   243 // -----------------------------------------------------------------------------
       
   244 // CMPMServer::DedicatedClients
       
   245 // -----------------------------------------------------------------------------
       
   246 //
       
   247 inline RArray<TUint32>& CMPMServer::DedicatedClients()
       
   248     {
       
   249     return iDedicatedClients;
       
   250     }
       
   251 
       
   252 // -----------------------------------------------------------------------------
       
   253 // CMPMServer::CommsDatAccess
       
   254 // -----------------------------------------------------------------------------
       
   255 //
       
   256 inline CMPMCommsDatAccess* CMPMServer::CommsDatAccess()
       
   257     {
       
   258     return iCommsDatAccess;
       
   259     }
       
   260 
       
   261 // -----------------------------------------------------------------------------
       
   262 // CMPMServer::RoamingWatcher()
       
   263 // -----------------------------------------------------------------------------
       
   264 //
       
   265 CMPMRoamingWatcher* CMPMServer::RoamingWatcher() const
       
   266     {
       
   267     return iRoamingWatcher;
       
   268     }
       
   269 
       
   270 // End of File