ImagePrint/ImagePrintEngine/DeviceProtocols/btprotocol/inc/cbtdprserviceadvertiser.h
branchRCL_3
changeset 20 159fc2f68139
parent 17 26673e532f65
child 21 d59c248c9d36
equal deleted inserted replaced
17:26673e532f65 20:159fc2f68139
     1 /*
       
     2 * Copyright (c) 2004-2007 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 CBTDPRSERVICEADVERTISER_H
       
    20 #define CBTDPRSERVICEADVERTISER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <btsdp.h>
       
    25 #include <btmanclient.h>
       
    26 
       
    27 #include "cbtsdpadvertiser.h"
       
    28 
       
    29 // CLASS DECLARATIONS
       
    30 /**
       
    31 * CBtDprServiceAdvertiser
       
    32 * Advertises the Direct Printing Referenced Object OBEX service using the SDP database.
       
    33 */
       
    34 NONSHARABLE_CLASS(CBtDprServiceAdvertiser) : public CBtSdpAdvertiser
       
    35     {
       
    36     public: //Constructors and destructor
       
    37 
       
    38        /**
       
    39         * NewL()
       
    40         * Create a CObjectExchangeServiceAdvertiser object
       
    41         * @return a pointer to the created instance of
       
    42         * CObjectExchangeServiceAdvertiser
       
    43         */
       
    44         static CBtDprServiceAdvertiser* NewL();
       
    45 
       
    46        /**
       
    47         * NewLC()
       
    48         * Create a CObjectExchangeServiceAdvertiser object
       
    49         * @return a pointer to the created instance of
       
    50         * CObjectExchangeServiceAdvertiser
       
    51         */
       
    52         static CBtDprServiceAdvertiser* NewLC();
       
    53 
       
    54        /**
       
    55         * ~CObjectExchangeServiceAdvertiser()
       
    56         * Destroy the object and release all memory objects
       
    57         */
       
    58         virtual ~CBtDprServiceAdvertiser();
       
    59 
       
    60     protected: // from CBTServiceAdvertiser
       
    61 
       
    62        /**
       
    63         * BuildProtocolDescriptionL()
       
    64         * Builds the protocol description
       
    65         * @param aProtocolDescriptor the protocol descriptor
       
    66         * @param aPort the service port
       
    67         */
       
    68         void BuildProtocolDescriptionL( CSdpAttrValueDES*
       
    69                                         aProtocolDescriptor, TInt aPort );
       
    70 
       
    71        /**
       
    72         * ServiceClass()
       
    73         * @return the service class
       
    74         */
       
    75         TUint ServiceClass();
       
    76 
       
    77        /**
       
    78         * ServiceName()
       
    79         * @return the service name
       
    80         */
       
    81         const TDesC& ServiceName();
       
    82 
       
    83        /**
       
    84         * ServiceDescription()
       
    85         * @return the service description
       
    86         */
       
    87         const TDesC& ServiceDescription();
       
    88 
       
    89     private:    // Constructors
       
    90 
       
    91        /**
       
    92         * CObjectExchangeServiceAdvertiser()
       
    93         * Constructs this object
       
    94         */
       
    95         CBtDprServiceAdvertiser();
       
    96 
       
    97        /**
       
    98         * ConstructL()
       
    99         * Perform the second phase construction of a
       
   100         * CObjectExchangeServiceAdvertiser object
       
   101         */
       
   102         void ConstructL();
       
   103 
       
   104     private:    // Data
       
   105 
       
   106        /**
       
   107         * iserviceDescription,
       
   108         * Owned by CObjectExchangeServiceAdvertiser.
       
   109         */
       
   110         HBufC* iServiceDescription;
       
   111 
       
   112     };
       
   113 
       
   114 #endif // CBTDPRSERVICEADVERTISER_H
       
   115 
       
   116 // End of File