www.pudn.com > S60_Platform_Bluetooth_OBEX_Example.rar > objectexchangeserviceadvertiser.h


/* Copyright (c) 2004, Nokia. All rights reserved */ 
 
 
#ifndef __COBJECTEXCHANGE_SERVICE_ADVERTISER__ 
#define __COBJECTEXCHANGE_SERVICE_ADVERTISER__  
 
// INCLUDES 
#include  
#include  
#include  
 
#include "BTServiceAdvertiser.h" 
 
// CLASS DECLARATIONS 
/** 
* CObjectExchangeServiceAdvertiser 
* Advertises the OBEX service using the SDP database. 
*/ 
class CObjectExchangeServiceAdvertiser : public CBTServiceAdvertiser 
    { 
    public: //Constructors and destructor 
 
        /** 
        * NewL() 
        * Create a CObjectExchangeServiceAdvertiser object 
        * @return a pointer to the created instance of  
        * CObjectExchangeServiceAdvertiser 
        */ 
        static CObjectExchangeServiceAdvertiser* NewL(); 
 
        /** 
        * NewLC() 
        * Create a CObjectExchangeServiceAdvertiser object 
        * @return a pointer to the created instance of  
        * CObjectExchangeServiceAdvertiser 
        */ 
        static CObjectExchangeServiceAdvertiser* NewLC(); 
 
        /** 
        * ~CObjectExchangeServiceAdvertiser() 
        * Destroy the object and release all memory objects 
        */ 
        virtual ~CObjectExchangeServiceAdvertiser(); 
 
    protected: // from CBTServiceAdvertiser 
 
        /** 
        * BuildProtocolDescriptionL() 
        * Builds the protocol description 
        * @param aProtocolDescriptor the protocol descriptor 
        * @param aPort the service port 
        */ 
        void BuildProtocolDescriptionL( CSdpAttrValueDES*  
                                        aProtocolDescriptor, TInt aPort ); 
 
        /** 
        * ServiceClass() 
        * @return the service class 
        */ 
        const TInt ServiceClass(); 
 
        /** 
        * ServiceName() 
        * @return the service name 
        */ 
        const TDesC& ServiceName(); 
 
        /** 
        * ServiceDescription() 
        * @return the service description 
        */ 
        const TDesC& ServiceDescription(); 
 
    private:    // Constructors 
 
        /** 
        * CObjectExchangeServiceAdvertiser() 
        * Constructs this object 
        */ 
        CObjectExchangeServiceAdvertiser(); 
 
        /** 
        * ConstructL() 
        * Perform the second phase construction of a  
        * CObjectExchangeServiceAdvertiser object 
        */ 
        void ConstructL(); 
 
    private:    // Data 
 
        /** 
        * iserviceDescription, 
        * Owned by CObjectExchangeServiceAdvertiser. 
        */ 
        HBufC* iServiceDescription; 
 
    }; 
 
#endif // __COBJECTEXCHANGE_SERVICE_ADVERTISER__ 
 
// End of File