📄 speeddialenum.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
#pragma once
#ifndef __SPEEDDIALENUM_H__
#define __SPEEDDIALENUM_H__
#include "voipstore.h"
#include <atlbase.h>
#include <atlcom.h>
#include "list.hxx"
/////////////////////////////////////////////////////////////////////////////
// CVoIPCallerInfoDBEnum
class ATL_NO_VTABLE CSpeedDialEnumerator :
public CComObjectRootEx<CComMultiThreadModel>,
public IVoIPCallerInfoDBEnum
{
public:
// Constructor
CSpeedDialEnumerator();
~CSpeedDialEnumerator();
public:
// IVoIPCallerInfoDBEnum
STDMETHOD (Next)(
unsigned long celt,
IVoIPCallerInfoRecord **rgCallerInfoRecord,
unsigned long FAR* pceltFetched
);
STDMETHOD (Skip)(
unsigned long celt
);
STDMETHOD (Reset)();
public:
// Module-internal public methods
HRESULT AddRecord(
int Index,
IVoIPCallerInfoRecord* pRecord
);
DECLARE_NO_REGISTRY()
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CSpeedDialEnumerator)
COM_INTERFACE_ENTRY(IVoIPCallerInfoDBEnum)
END_COM_MAP()
// IVoIPCallerInfoDBEnum
private:
struct SpeedDialRecord
{
int m_SpeedDialIndex;
IVoIPCallerInfoRecord* m_pRecord;
};
typedef ce::list< SpeedDialRecord* > RecordList;
RecordList m_RecordList;
RecordList::iterator m_Iterator;
};
#endif // !defined __SPEEDDIALENUM_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -