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

📄 messageservicesearcher.h

📁 Symbian下的p2p工程
💻 H
字号:
/* Copyright (c) 2004, Nokia. All rights reserved */


#ifndef __MESSAGESERVICESEARCHER_H__
#define __MESSAGESERVICESEARCHER_H__

// INCLUDES
#include <e32base.h>
#include "BTServiceSearcher.h"
#include "Log.h"

// CLASS DECLARATIONS
/**
* CMessageServiceSearcher
* Searches for a message service.
*/
class CMessageServiceSearcher : public CBTServiceSearcher
    {
    public:     // Constructors and destructor

        /*
        * NewL()
        * Create a CMessageServiceSearcher object
        * @param aLog the log to send output to
        * @return a pointer to the created instance of 
        * CMessageServiceSearcher
        */
        static CMessageServiceSearcher* NewL( MLog& aLog );

        /**
        * NewLC()
        * Create a CMessageServiceSearcher object
        * @param aLog the log to send output to
        * @return a pointer to the created instance of 
        * CMessageServiceSearcher
        */
        static CMessageServiceSearcher* NewLC( MLog& aLog );

        /**
        * ~CMessageServiceSearcher()
        * Destroy the object and release all memory objects.
        */
        virtual ~CMessageServiceSearcher();

    public: // New function

        /**
        * Port()
        * Retrieve the port on which the service is installed
        * @return the port number
        */
        TInt Port();

    protected:  // New functions

        /**
        * ServiceClass()
        * @return the service class uid.
        */
        const TUUID& ServiceClass() const;

        /**
        * ProtocolList()
        * @return the attribute list.
        */
        const TSdpAttributeParser::TSdpAttributeList& ProtocolList() const;

        /**
        * FoundElementL()
        * Read the data element
        * @param aKey a key that identifies the element
        * @param aValue the data element
        */
        virtual void FoundElementL( TInt aKey, CSdpAttrValue& aValue );

    private:    // Constructors

        /**
        * CMessageServiceSearcher()
        * Constructs this object
        * @param aLog the log to send output to
        */
        CMessageServiceSearcher( MLog& aLog );

        /**
        * ConstructL()
        * Performs second phase construction of this object
        */
        void ConstructL();

    private:    // data

        /** iServiceClass the service class UUID to search for */
        TUUID iServiceClass;

        /** iPort the port number that the remote service is installed */
        TInt iPort;
    };

#endif // __MESSAGESERVICESEARCHER_H__

// End of File

⌨️ 快捷键说明

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