ipcm_pub/connection_monitor_server_api/inc/rconnmon.h
changeset 71 9f263f780e41
parent 61 8b0c979bbe8c
equal deleted inserted replaced
70:ac5daea24fb0 71:9f263f780e41
     1 /*
     1 /*
     2 * Copyright (c) 2002-2009 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".
   331     EConnMonGetConnectionCount = 1,
   331     EConnMonGetConnectionCount = 1,
   332     EConnMonGetIntAttribute,
   332     EConnMonGetIntAttribute,
   333     EConnMonGetUintAttribute,
   333     EConnMonGetUintAttribute,
   334     EConnMonGetBoolAttribute,
   334     EConnMonGetBoolAttribute,
   335     EConnMonGetStringAttribute,
   335     EConnMonGetStringAttribute,
   336     EConnMonGetPckgAttribute
   336     EConnMonGetPckgAttribute,
       
   337     EConnMonSetBoolAttribute,
   337     };
   338     };
   338 
   339 
   339 /**
   340 /**
   340 * Events sent by Connection Monitor. See SDK documentation for more details.
   341 * Events sent by Connection Monitor. See SDK documentation for more details.
   341 */
   342 */
   475     EReqSetStringAttribute            = 11,
   476     EReqSetStringAttribute            = 11,
   476     EReqSetPckgAttribute              = 12,
   477     EReqSetPckgAttribute              = 12,
   477     EReqCancelAsyncRequest            = 13,
   478     EReqCancelAsyncRequest            = 13,
   478     EReqReceiveEvent                  = 14,
   479     EReqReceiveEvent                  = 14,
   479     EReqCancelReceiveEvent            = 15,
   480     EReqCancelReceiveEvent            = 15,
       
   481     EReqSetAsyncBoolAttribute         = 16,
   480 
   482 
   481     EReqPluginCreateSubSession        = 500,
   483     EReqPluginCreateSubSession        = 500,
   482     EReqPluginCloseSubSession         = 501,
   484     EReqPluginCloseSubSession         = 501,
   483     EReqPluginRegisterAttribute       = 502,
   485     EReqPluginRegisterAttribute       = 502,
   484     EReqPluginCancelRegisterAttribute = 503,
   486     EReqPluginCancelRegisterAttribute = 503,
  1736     IMPORT_C TInt SetBoolAttribute(
  1738     IMPORT_C TInt SetBoolAttribute(
  1737             const TUint aConnectionId,
  1739             const TUint aConnectionId,
  1738             const TUint aSubConnectionId,
  1740             const TUint aSubConnectionId,
  1739             const TUint aAttribute,
  1741             const TUint aAttribute,
  1740             const TBool aValue ) const;
  1742             const TBool aValue ) const;
       
  1743     
       
  1744     /**
       
  1745     * Sets the value for a TBool attribute.
       
  1746     *
       
  1747     * This method can be used to stop a connection (KConnectionStop).
       
  1748     * @param aConnectionId Connection ID.
       
  1749     * @param aSubConnectionId Subconnection ID. If set to 0, method applies to
       
  1750     * connection.
       
  1751     * @param aAttribute Identifies the attribute to be set.
       
  1752     * @param aValue The value to be set.
       
  1753     * @param aStatus KErrNone if successful, a system-wide error code if not.
       
  1754     */            
       
  1755     IMPORT_C void SetBoolAttribute(
       
  1756             const TUint aConnectionId,
       
  1757             const TUint aSubConnectionId,
       
  1758             const TUint aAttribute,
       
  1759             const TBool aValue,
       
  1760             TRequestStatus& aStatus ) const;
  1741 
  1761 
  1742     /**
  1762     /**
  1743     * Sets the value for a string attribute.
  1763     * Sets the value for a string attribute.
  1744     *
  1764     *
  1745     * @param aConnectionId Connection ID.
  1765     * @param aConnectionId Connection ID.