blob: a03a2a9bcd01bfcea4eb71616933ecf82c34adcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#pragma once
#ifndef __ac71e133_786c_41a7_ab07_625b76ff2a8c_QuotesProvider_h__
#define __ac71e133_786c_41a7_ab07_625b76ff2a8c_QuotesProvider_h__
#include <boost\noncopyable.hpp>
#include <string>
class CQuotesProviderVisitor;
class IQuotesProvider : private boost::noncopyable
{
public:
struct CProviderInfo
{
tstring m_sName;
tstring m_sURL;
};
public:
IQuotesProvider() {}
virtual ~IQuotesProvider() {}
virtual bool Init() = 0;
virtual const CProviderInfo& GetInfo()const = 0;
virtual void AddContact(HANDLE hContact) = 0;
virtual void DeleteContact(HANDLE hContact) = 0;
virtual void ShowPropertyPage(WPARAM wp,OPTIONSDIALOGPAGE& odp) = 0;
virtual void RefreshAll() = 0;
virtual void RefreshContact(HANDLE hContact) = 0;
virtual void SetContactExtraIcon(HANDLE hContact)const = 0;
virtual void Run() = 0;
virtual void Accept(CQuotesProviderVisitor& visitor)const = 0;
};
#endif //__ac71e133_786c_41a7_ab07_625b76ff2a8c_QuotesProvider_h__
|