ncdengine/debuglogger/obex/inc/objectexchangeservicesearcher.h
changeset 4 32704c33136d
equal deleted inserted replaced
-1:000000000000 4:32704c33136d
       
     1 /*
       
     2 * Copyright (c) 2006 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __OBJECTEXCHANGESERVICESEARCHER_H__
       
    20 #define __OBJECTEXCHANGESERVICESEARCHER_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "BTServiceSearcher.h"
       
    24 #include "ObjectExchangeProtocolConstants.h"
       
    25 
       
    26 
       
    27 /*! 
       
    28   @class CObjectExchangeServiceSearcher
       
    29   
       
    30   @discussion Searches the remote SDP database for suitable OBEX servers.
       
    31   */
       
    32 class CObjectExchangeServiceSearcher : public CBTServiceSearcher
       
    33     {
       
    34 public:
       
    35 /*!
       
    36   @function NewL
       
    37   
       
    38   @discussion Construct a CObjectExchangeServiceSearcher
       
    39   @result a pointer to the created instance of CObjectExchangeServiceSearcher
       
    40   */
       
    41     static CObjectExchangeServiceSearcher* NewL();
       
    42 
       
    43 /*!
       
    44   @function NewLC
       
    45   
       
    46   @discussion Construct a CObjectExchangeServiceSearcher  
       
    47   @result a pointer to the created instance of CObjectExchangeServiceSearcher
       
    48   */
       
    49     static CObjectExchangeServiceSearcher* NewLC();
       
    50 
       
    51 /*!
       
    52   @function ~CObjectExchangeServiceSearcher
       
    53   
       
    54   @discussion Destroy the object and release all memory objects
       
    55   */
       
    56     ~CObjectExchangeServiceSearcher();
       
    57 
       
    58 /*!
       
    59   @function Port
       
    60   
       
    61   @result the port to connect to on the remote machine
       
    62   */
       
    63     TInt Port();
       
    64 
       
    65 protected:
       
    66 
       
    67 /*!
       
    68   @function ServiceClass
       
    69   
       
    70   @discussion The service class to search for
       
    71   @result the service class UUID
       
    72   */
       
    73     const TUUID& ServiceClass() const;
       
    74 
       
    75 /*!
       
    76   @function ProtocolList
       
    77   
       
    78   @discussion The list of Protocols required by the service.
       
    79   */
       
    80     const TSdpAttributeParser::TSdpAttributeList& ProtocolList() const;
       
    81 
       
    82 /*!
       
    83   @function FoundElementL
       
    84   
       
    85   @discussion Read the data element
       
    86   @param aKey a key that identifies the element
       
    87   @param aValue the data element
       
    88   */
       
    89     virtual void FoundElementL(TInt aKey, CSdpAttrValue& aValue);
       
    90 
       
    91 private:
       
    92 /*!
       
    93   @function CObjectExchangeServer
       
    94   
       
    95   @discussion Constructs this object
       
    96   */
       
    97     CObjectExchangeServiceSearcher();
       
    98 
       
    99 /*!
       
   100   @function ConstructL
       
   101   
       
   102   @discussion 2nd phase construction of this object
       
   103   */
       
   104     void ConstructL();
       
   105 
       
   106 private:
       
   107     /*! @var iServiceClass the service class to search for */
       
   108     TUUID iServiceClass;
       
   109 
       
   110     /*! @var iPort the port to connect to on the remote machine */
       
   111     TInt iPort;
       
   112     };
       
   113 
       
   114 #endif // __OBJECTEXCHANGESERVICESEARCHER_H__
       
   115