connectivitymodules/SeCon/plugins/hapticsconnplugin/src/hapticsconnplugin.cpp
branchRCL_3
changeset 19 0aa8cc770c8a
parent 18 453dfc402455
child 20 4a793f564d72
equal deleted inserted replaced
18:453dfc402455 19:0aa8cc770c8a
     1 /*
       
     2 * Copyright (c) 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:  Haptics OBEX connection plugin.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "hapticsconnplugin.h"
       
    20 #include "hapticsmsghandler.h"
       
    21 #include "hapticsconntrace.h"
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // CHapticsConnPlugin::NewL()
       
    25 // Two-phase constructing
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 CHapticsConnPlugin* CHapticsConnPlugin::NewL()
       
    29     {
       
    30     COMPONENT_TRACE( ( _L( "CHapticsConnPlugin::NewL - Begin" ) ) );
       
    31     CHapticsConnPlugin* self = new ( ELeave ) CHapticsConnPlugin();
       
    32     CleanupStack::PushL( self );
       
    33     self->ConstructL();
       
    34     CleanupStack::Pop( self );
       
    35     COMPONENT_TRACE( ( _L( "CHapticsConnPlugin::NewL - End" ) ) );
       
    36     return( self );
       
    37     }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // CHapticsConnPlugin::ConstructL()
       
    41 // 
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 void CHapticsConnPlugin::ConstructL()
       
    45     {
       
    46     COMPONENT_TRACE( ( _L( "CHapticsConnPlugin::ConstructL() - Begin" ) ) );
       
    47     iMsgHandler = CHapticsMsgHandler::NewL();
       
    48     iMsgHandler->StartNotifier();
       
    49     COMPONENT_TRACE( ( _L( "CHapticsConnPlugin::ConstructL() - End" )));
       
    50     }
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 // CHapticsConnPlugin::~CHapticsConnPlugin()
       
    54 // Destructor
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 CHapticsConnPlugin::~CHapticsConnPlugin()
       
    58     {
       
    59     COMPONENT_TRACE( ( _L( "CHapticsConnPlugin::~CHapticsConnPlugin() - Begin" ) ) );
       
    60     delete iMsgHandler;
       
    61     COMPONENT_TRACE( ( _L( "CHapticsConnPlugin::~CHapticsConnPlugin() - End" ) ) );
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // CHapticsConnPlugin::CHapticsConnPlugin()
       
    66 // Constructor
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 CHapticsConnPlugin::CHapticsConnPlugin()
       
    70     {    
       
    71     }
       
    72 
       
    73 // -----------------------------------------------------------------------------
       
    74 // CHapticsConnPlugin::IsOBEXActive()
       
    75 //
       
    76 // -----------------------------------------------------------------------------
       
    77 //    
       
    78 TBool CHapticsConnPlugin::IsOBEXActive()   
       
    79     {
       
    80     COMPONENT_TRACE( ( _L( "CHapticsConnPlugin::IsOBEXActive" ) ));
       
    81     return ETrue;
       
    82     }
       
    83 
       
    84 // End of file