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

📄 voipstore.idl

📁 一个WinCE6。0下的IP phone的源代码
💻 IDL
📖 第 1 页 / 共 2 页
字号:
    [ 
        object,
        uuid(231AAD56-AF6D-4DA2-B97A-78D69906B875),
        helpstring("IVoIPCallerInfoRecord Interface"),
        pointer_default(unique)
    ]
    interface IVoIPCallerInfoRecord : IUnknown
    {
        /*------------------------------------------------------------------------------
            URI
        ------------------------------------------------------------------------------*/
        // Sets the caller's URI.
        HRESULT put_URI(
            [in]BSTR bstrURI
            );
        
        // Gets the caller's URI.
        HRESULT get_URI(
            [out, retval]BSTR *pbstrURI
            );
            
        /*------------------------------------------------------------------------------
            FriendlyName
        ------------------------------------------------------------------------------*/
        // Sets the caller's friendly (display) name.
        HRESULT put_FriendlyName(
            [in]BSTR bstrFriendlyName
            );
        
        // Gets the caller's friendly (display) name.
        HRESULT get_FriendlyName(
            [out, retval]BSTR *pbstrFriendlyName
            );
        
        /*------------------------------------------------------------------------------
            VoIPName
        ------------------------------------------------------------------------------*/
        // Sets the caller's VoIP (RTC) name.
        HRESULT put_VoIPName(
            [in]BSTR bstrVoIPName
            );
        
        // Gets the caller's VoIP (RTC) name.
        HRESULT get_VoIPName(
            [out, retval]BSTR *pbstrVoIPName
            );
            
        /*------------------------------------------------------------------------------
            SpeedDialEntry
        ------------------------------------------------------------------------------*/
        // Sets the caller's numeric speed dial entry.
        HRESULT put_SpeedDialEntry(
            [in]int idxSpeedDial
            );
        
        // Gets the caller's numeric speed dial entry.
        HRESULT get_SpeedDialEntry(
            [out, retval]int *pidxSpeedDial
            );
        
        /*------------------------------------------------------------------------------
            Blocked
        ------------------------------------------------------------------------------*/
        // Set to TRUE to block all future calls from this caller.
        HRESULT put_Blocked(
            [in]VARIANT_BOOL fBlocked
            );
        
        // If TRUE, all future calls from this caller will be blocked.
        HRESULT get_Blocked(
            [out, retval]VARIANT_BOOL *pfBlocked
            );
    
        /*------------------------------------------------------------------------------
            ForwardingURI
        ------------------------------------------------------------------------------*/
        // Sets the URI to which to auto-forward calls from this caller.
        HRESULT put_ForwardingURI(
            [in]BSTR bstrForwardingURI
            );
        
        // Gets the URI to which to auto-forward calls from this caller.
        HRESULT get_ForwardingURI(
            [out, retval]BSTR *pbstrForwardingURI
            );
    
        /*------------------------------------------------------------------------------
            RingTone
        ------------------------------------------------------------------------------*/
        // Sets the path to the ring tone to use when this caller is calling.  Set to NULL or the empty string to use the default ring.
        HRESULT put_RingTone(
            [in]BSTR bstrRingTonePath
            );
        
        // Gets the path to the ring tone to use when this caller is calling.  If NULL or the empty string, the default ring will be used.
        HRESULT get_RingTone(
            [out, retval]BSTR *pbstrRingTonePath
            );
    
        /*------------------------------------------------------------------------------
            Commit
        ------------------------------------------------------------------------------*/
        // Commits to the associated database any unsaved changes made to this record.
        HRESULT Commit();

        /*------------------------------------------------------------------------------
            DeleteFromDB
        ------------------------------------------------------------------------------*/
        // Removes this record from the associated database.
        HRESULT DeleteFromDB();
    };

    /*------------------------------------------------------------------------------
        IVoIPCallerInfoDB
        
        Interface wrapper for a caller info database.
    ------------------------------------------------------------------------------*/
    [ 
        object,
        uuid(D954B73A-8022-410C-B78F-90E49919C4AE),
        helpstring("IVoIPCallerInfoDB Interface"),
        pointer_default(unique)
    ]
    interface IVoIPCallerInfoDB : IUnknown
    {
        /*------------------------------------------------------------------------------
            Init
        ------------------------------------------------------------------------------*/
        // Initializes the database for this URI.
        HRESULT Init(
            [in]BSTR bstrURI
            );
        
        /*------------------------------------------------------------------------------
            CreateRecord
        ------------------------------------------------------------------------------*/
        // Creates a new caller info record associated with this database.
        HRESULT CreateRecord(
            [out, retval]IVoIPCallerInfoRecord **ppiRecord
            );
        
        /*------------------------------------------------------------------------------
            Enumerator
        ------------------------------------------------------------------------------*/
        // Gets an enumerator for iterating over the database records.
        HRESULT get_Enumerator(
            [out, retval]IVoIPCallerInfoDBEnum  **ppiEnum
            );

        /*------------------------------------------------------------------------------
            FindCallerInfoByURI
        ------------------------------------------------------------------------------*/
        // Searches over the database for a record whose URI matches bstrURI.
        HRESULT FindCallerInfoByURI(
            [in]BSTR bstrURI, 
            [out, retval]IVoIPCallerInfoRecord **ppiRecord
            );

        
        /*------------------------------------------------------------------------------
            FindCallerInfoBySpeedDialEntry
        ------------------------------------------------------------------------------*/
        // Searches over the database for a record whose speed dial entry matches this one.
        HRESULT FindCallerInfoBySpeedDialEntry(
            [in]INT idxSpeedDial, 
            [out, retval]IVoIPCallerInfoRecord **ppiRecord
            );
            
        /*------------------------------------------------------------------------------
            Speed Dial Enumerator
        ------------------------------------------------------------------------------*/
        // Gets a speed dial enumerator for iterating over the database records.
        HRESULT get_SpeedDialEnumerator(
            [out, retval]IVoIPCallerInfoDBEnum  **ppiEnum
            );

        /*------------------------------------------------------------------------------
            Friendly Name Enumerator
        ------------------------------------------------------------------------------*/
        // Gets a friendly name enumerator for iterating over the database records.
        HRESULT get_FriendlyNameEnumerator(
            [out, retval]IVoIPCallerInfoDBEnum  **ppiEnum
            );
            
    };
    
    [ 
        object,
        uuid(11928FC4-FE62-4412-8CAF-1EC68994FDCB),
        helpstring("IVoIPCallerInfoDBEnum Interface"),
        pointer_default(unique)
    ]
    interface IVoIPCallerInfoDBEnum : IUnknown
    {
        HRESULT     Reset();
        
        HRESULT     Skip(
            [in]unsigned long celt
            );
        
        HRESULT     Next(
            [in] unsigned long celt, 
            [out] IVoIPCallerInfoRecord **rgVoIPCallerInfoRecord, 
            [out, retval] unsigned long *pceltFetched
            );
    
    };

[
    uuid(DDD0C98E-8BA5-4CA6-ADA5-63A399714008),
    version(1.0),
    helpstring("VoIP 1.0 Type Library")
]
library VOIPLib
{
    importlib("stdole32.tlb");
    importlib("stdole2.tlb");

    [
        uuid(822E2EB8-3544-491D-8355-FB4941C55DE6),
        helpstring("VoIPCallRecord Class")
    ]
    coclass VoIPCallLogRecord
    {
        [default] interface IVoIPCallRecord;
    };
    [
        uuid(6362637C-D330-4621-8A98-1BACEE1E8065),
        helpstring("VoIPCallLogDB Class")
    ]
    coclass VoIPCallLogDB
    {
        [default] interface IVoIPCallLogDB;
    };
    [
        uuid(8555B292-2CD4-41A8-AFD7-0A3D74E6E2F5),
        helpstring("VoIPCallerInfoDB Class")
    ]
    coclass VoIPCallerInfoDB
    {
        [default] interface IVoIPCallerInfoDB;
    };

};

⌨️ 快捷键说明

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