summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/QuotesProviders.h
blob: 50394923cb2275574dc460296eb23aa38a2a5fa8 (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
#ifndef __148306d1_da2a_43df_b1ad_0cdc8ef8a79e_QuotesProviders_h__
#define __148306d1_da2a_43df_b1ad_0cdc8ef8a79e_QuotesProviders_h__

class IQuotesProvider;

class CQuotesProviders
{
public:
	typedef boost::shared_ptr<IQuotesProvider> TQuotesProviderPtr;
	typedef std::vector<TQuotesProviderPtr> TQuotesProviders;

public:
	CQuotesProviders();
	~CQuotesProviders();

	TQuotesProviderPtr FindProvider(const tstring& rsName)const;
	TQuotesProviderPtr GetContactProviderPtr(HCONTACT hContact)const;
	const TQuotesProviders& GetProviders()const;

private:
	void InitProviders();
	void CreateProviders();
	void ClearProviders();

private:
	TQuotesProviders m_apProviders;
};

#endif //__148306d1_da2a_43df_b1ad_0cdc8ef8a79e_QuotesProviders_h__