localconnectivityservice/dun/utils/inc/DunSignalNotify.h
branchRCL_3
changeset 15 c47ebe2ac36c
parent 0 c3e98f10fcf4
equal deleted inserted replaced
12:031b9cffe6e4 15:c47ebe2ac36c
     1 /*
     1 /*
     2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-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".
    63      * @return Symbian error code on error, KErrNone otherwise
    63      * @return Symbian error code on error, KErrNone otherwise
    64      */
    64      */
    65     TInt AddCallback( MDunConnMon* aCallback );
    65     TInt AddCallback( MDunConnMon* aCallback );
    66 
    66 
    67     /**
    67     /**
    68      * Adds callback for endpoint readiness
       
    69      * The callback will be called when the endpoint is ready or not ready
       
    70      *
       
    71      * @since S60 5.0
       
    72      * @param aERCallback Callback to call when writes can/can't be done
       
    73      * @return Symbian error code on error, KErrNone otherwise
       
    74      */
       
    75     TInt AddEndpointReadyCallback( MDunEndpointReady* aERCallback );
       
    76 
       
    77     /**
       
    78      * Sets media to use for this endpoint monitor (network side)
    68      * Sets media to use for this endpoint monitor (network side)
    79      *
    69      *
    80      * @since S60 3.2
    70      * @since S60 3.2
    81      * @param aComm RComm pointer to use as the endpoint
    71      * @param aComm RComm pointer to use as the endpoint
    82      * @return Symbian error code on error, KErrNone otherwise
    72      * @return Symbian error code on error, KErrNone otherwise
   129      * @param aClearMask Clear the handshaking lines in the mask.
   119      * @param aClearMask Clear the handshaking lines in the mask.
   130      * @return None
   120      * @return None
   131      */
   121      */
   132     void ReportSignalChange( TUint aSetMask, TUint aClearMask );
   122     void ReportSignalChange( TUint aSetMask, TUint aClearMask );
   133 
   123 
   134     /**
       
   135      * Reports endpoint ready or not ready
       
   136      *
       
   137      * @since S60 5.0
       
   138      * @param aReady ETrue if endpoint ready, EFalse otherwise
       
   139      * @return None
       
   140      */
       
   141     void ReportEndpointReady( TBool aReady );
       
   142 
       
   143 // from base class CActive
   124 // from base class CActive
   144 
   125 
   145     /*
   126     /*
   146      * From CActive.
   127      * From CActive.
   147      * Gets called when line status changes
   128      * Gets called when line status changes
   165     /**
   146     /**
   166      * Callback(s) to call when notification(s) via MDunConnMon to be made
   147      * Callback(s) to call when notification(s) via MDunConnMon to be made
   167      * Normally contains only one callback
   148      * Normally contains only one callback
   168      */
   149      */
   169     RPointerArray<MDunConnMon> iCallbacks;
   150     RPointerArray<MDunConnMon> iCallbacks;
   170 
       
   171     /**
       
   172      * Callback(s) to call when notification(s) via MDunEndpointReady to be made
       
   173      * Normally contains only one callback for upstream
       
   174      */
       
   175     RPointerArray<MDunEndpointReady> iERCallbacks;
       
   176 
   151 
   177     /**
   152     /**
   178      * Pointer to common utility class
   153      * Pointer to common utility class
   179      * Not own.
   154      * Not own.
   180      */
   155      */