datacommsserver/esockserver/ssock/ss_flowbinders.cpp
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // ss_flowbinder.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include "ss_flowbinders.h"
       
    19 
       
    20 using namespace ESock;
       
    21 
       
    22 EXPORT_START_ATTRIBUTE_TABLE_AND_FN(TBinderConfig4, TBinderConfig4::EUid, TBinderConfig4::ETypeId)
       
    23 // No attributes defined, as no serialisation takes place.
       
    24 END_ATTRIBUTE_TABLE()
       
    25 
       
    26 EXPORT_START_ATTRIBUTE_TABLE_AND_FN(TBinderConfig6, TBinderConfig6::EUid, TBinderConfig6::ETypeId)
       
    27 // No attributes defined, as no serialisation takes place.
       
    28 END_ATTRIBUTE_TABLE()
       
    29 
       
    30 
       
    31 EXPORT_C  MLowerControl* MFlowBinderControl::GetControlL(const TDesC8& /*aProtocol*/)
       
    32     {
       
    33     User::Leave(KErrNotSupported);
       
    34     return NULL;
       
    35     }
       
    36     
       
    37 EXPORT_C  MLowerDataSender* MFlowBinderControl::BindL(const TDesC8& /*aProtocol*/, MUpperDataReceiver* /*aReceiver*/, MUpperControl* /*aControl*/)
       
    38     {
       
    39     User::Leave(KErrNotSupported);
       
    40     return NULL;
       
    41     }
       
    42 EXPORT_C  void MFlowBinderControl::Unbind(MUpperDataReceiver* /*aReceiver*/, MUpperControl* /*aControl*/)
       
    43     {
       
    44     }
       
    45 
       
    46 //session binder
       
    47 EXPORT_C  MSessionControl* MFlowBinderControl::GetControlL(TInt /*aSessionType*/, MSessionControlNotify&)
       
    48     {
       
    49     User::Leave(KErrNotSupported);    
       
    50     return NULL;
       
    51     }
       
    52 EXPORT_C  MSessionData* MFlowBinderControl::BindL(MSessionDataNotify& /*aNotify*/)
       
    53     {
       
    54     User::Leave(KErrNotSupported);    
       
    55     return NULL;
       
    56     }
       
    57 EXPORT_C  void MFlowBinderControl::Unbind()
       
    58     {
       
    59     }
       
    60 
       
    61 EXPORT_C CSubConnectionFlowBase& MFlowBinderControl::CloneFlowL()
       
    62     {    
       
    63     User::Leave(KErrNotSupported);    
       
    64     CSubConnectionFlowBase* flow = NULL;
       
    65     return *flow;
       
    66     }
       
    67 
       
    68 EXPORT_C TInt MLowerControl::GetName(TDes& /*aName*/)
       
    69     {
       
    70     return KErrNotSupported;
       
    71     }
       
    72     
       
    73 EXPORT_C TInt MLowerControl::BlockFlow(TBlockOption /*aOption*/)
       
    74     {
       
    75     return KErrNotSupported;
       
    76     }
       
    77     
       
    78 EXPORT_C TInt MLowerControl::GetConfig(TBinderConfig& /*aConfig*/)
       
    79     {
       
    80     return KErrNotSupported;
       
    81     }
       
    82     
       
    83 EXPORT_C TInt MLowerControl::Control(TUint /*aLevel*/, TUint /*aName*/, TDes8& /*aOption*/)
       
    84     {
       
    85     return KErrNotSupported;
       
    86     }
       
    87