bearermanagement/mpm/inc/mpmserver.inl
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
     1 /*
     1 /*
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007-2009 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".
    70     {
    70     {
    71     return iWLANScanRequired;
    71     return iWLANScanRequired;
    72     }
    72     }
    73 
    73 
    74 // -----------------------------------------------------------------------------
    74 // -----------------------------------------------------------------------------
       
    75 // CMPMServer::DisconnectQueue
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 inline CArrayPtrFlat<CMPMDisconnectDlg>* CMPMServer::DisconnectQueue()
       
    79     {
       
    80     return iDisconnectQueue;
       
    81     }
       
    82 
       
    83 // -----------------------------------------------------------------------------
    75 // CMPMServer::RoamingQueue
    84 // CMPMServer::RoamingQueue
    76 // -----------------------------------------------------------------------------
    85 // -----------------------------------------------------------------------------
    77 //
    86 //
    78 inline CArrayPtrFlat<CMPMConfirmDlgRoaming>* CMPMServer::RoamingQueue()
    87 inline CArrayPtrFlat<CMPMConfirmDlgRoaming>* CMPMServer::RoamingQueue()
    79     {
    88     {
    85 // -----------------------------------------------------------------------------
    94 // -----------------------------------------------------------------------------
    86 //
    95 //
    87 inline CArrayPtrFlat<CMPMConfirmDlgStarting>* CMPMServer::StartingQueue()
    96 inline CArrayPtrFlat<CMPMConfirmDlgStarting>* CMPMServer::StartingQueue()
    88     {
    97     {
    89     return iStartingQueue;
    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;
    90     }
   145     }
    91 
   146 
    92 // -----------------------------------------------------------------------------
   147 // -----------------------------------------------------------------------------
    93 // CMPMServer::IncrementConnections
   148 // CMPMServer::IncrementConnections
    94 // -----------------------------------------------------------------------------
   149 // -----------------------------------------------------------------------------
   184     {
   239     {
   185     return iMpmCsIdWatcher;
   240     return iMpmCsIdWatcher;
   186     }
   241     }
   187 
   242 
   188 // -----------------------------------------------------------------------------
   243 // -----------------------------------------------------------------------------
   189 // CMPMServer::VpnToggleWatcher
       
   190 // -----------------------------------------------------------------------------
       
   191 //
       
   192 inline CMpmVpnToggleWatcher* CMPMServer::VpnToggleWatcher()
       
   193     {
       
   194     return iMpmVpnToggleWatcher;
       
   195     }
       
   196 
       
   197 // -----------------------------------------------------------------------------
       
   198 // CMPMServer::DedicatedClients
   244 // CMPMServer::DedicatedClients
   199 // -----------------------------------------------------------------------------
   245 // -----------------------------------------------------------------------------
   200 //
   246 //
   201 inline RArray<TUint32>& CMPMServer::DedicatedClients()
   247 inline RArray<TUint32>& CMPMServer::DedicatedClients()
   202     {
   248     {
   214 
   260 
   215 // -----------------------------------------------------------------------------
   261 // -----------------------------------------------------------------------------
   216 // CMPMServer::RoamingWatcher()
   262 // CMPMServer::RoamingWatcher()
   217 // -----------------------------------------------------------------------------
   263 // -----------------------------------------------------------------------------
   218 //
   264 //
   219 inline CMPMRoamingWatcher* CMPMServer::RoamingWatcher() const
   265 CMPMRoamingWatcher* CMPMServer::RoamingWatcher() const
   220     {
   266     {
   221     return iRoamingWatcher;
   267     return iRoamingWatcher;
   222     }
   268     }
   223 
   269 
   224 // -----------------------------------------------------------------------------
   270 // -----------------------------------------------------------------------------
   225 // CMPMServer::ConnUiUtils()
       
   226 // -----------------------------------------------------------------------------
       
   227 //
       
   228 inline CConnectionUiUtilities* CMPMServer::ConnUiUtils() const
       
   229     {
       
   230     return iConnUiUtils;
       
   231     }
       
   232 
       
   233 // -----------------------------------------------------------------------------
       
   234 // CMPMServer::DataUsageWatcher()
   271 // CMPMServer::DataUsageWatcher()
   235 // -----------------------------------------------------------------------------
   272 // -----------------------------------------------------------------------------
   236 //
   273 //
   237 CMpmDataUsageWatcher* CMPMServer::DataUsageWatcher() const
   274 CMpmDataUsageWatcher* CMPMServer::DataUsageWatcher() const
   238     {
   275     {