⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chatserviceadvertiser.h

📁 一个聊天的软件
💻 H
字号:
/*
* ==============================================================================
*  Name        : ChatServiceAdvertiser.h
*  Part of     : Chat
*  Interface   : 
*  Description : 
*  Version     : 
*
*  Copyright (c) 2005-2006 Nokia Corporation.
*  This material, including documentation and any related 
*  computer programs, is protected by copyright controlled by 
*  Nokia Corporation.
* ==============================================================================
*/

#ifndef CHATSERVICEADVERTISER_H
#define CHATSERVICEADVERTISER_H

// INCLUDES
#include <e32base.h>
#include <btsdp.h>
#include "ChatBtServiceAdvertiser.h"


// CLASS DECLARATIONS
/**
* CChatServiceAdvertiser
* Advertises the message service using the SDP database.
*/
class CChatServiceAdvertiser : public CChatBtServiceAdvertiser
    {
    public: // Constructors and destructor

        /**
        * NewL()
        * Create a CChatServiceAdvertiser object
        * @return a pointer to the created instance of
        * CChatServiceAdvertiser
        */
        static CChatServiceAdvertiser* NewL();

        /**
        * NewLC()
        * Create a CChatServiceAdvertiser object, which will
        * draw itself to aRect.
        * @return a pointer to the created instance of
        * CChatServiceAdvertiser
        */
        static CChatServiceAdvertiser* NewLC();

        /**
        * ~CChatServiceAdvertiser()
        * Destroy the object and release all memory objects.
        * Close any open sockets
        */
        virtual ~CChatServiceAdvertiser();

    protected: // from CChatBtServiceAdvertiser

        /**
        * 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
        */
        TInt ServiceClass();

        /**
        * ServiceName()
        * @return the service name
        */
        const TDesC& ServiceName();

        /**
        * ServiceDescription()
        * @return the service description
        */
        const TDesC& ServiceDescription();

    private:    // Constructors

        /**
        * CChatServiceAdvertiser()
        * Constructs this object
        */
        CChatServiceAdvertiser();

        /**
        * ConstructL()
        * 2nd phase construction of this object
        */
        void ConstructL();

    private:    // data

        /**
        * iServiceName
        * Owned by CChatServiceAdvertiser
        */
        HBufC* iServiceName;

        /**
        * iServiceDescription
        * Owned by CChatServiceAdvertiser
        */
        HBufC* iServiceDescription;
    };

#endif // CHATSERVICEADVERTISER_H

// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -