summaryrefslogtreecommitdiffstats
path: root/private/oleutest/balls/common/qicf.hxx
blob: 8f63c5455cb390f506fd8edf198b88d4c0676cbc (plain) (blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//+-------------------------------------------------------------------
//
//  File:	qicf.hxx
//
//  Contents:	test class factory object implementation
//
//  Classes:	CQIClassFactory
//
//  Functions:	None
//
//  History:	23-Nov-92   Rickhi	Created
//
//--------------------------------------------------------------------
#ifndef __CQICLASSFACTORY__
#define __CQICLASSFACTORY__

#include    <win4p.hxx>
#include    <otrack.hxx>	    //	object tracking
#include    <cqi.hxx>		    //	class code

//+-------------------------------------------------------------------
//
//  Class:	CQIClassFactory
//
//  Purpose:	test class factory object implementation
//
//  History:	23-Nov-92   Rickhi	Created
//
//--------------------------------------------------------------------
class CQIClassFactory : INHERIT_TRACKING,
			public IClassFactory
{
public:
    //	Constructor & Destructor
		    CQIClassFactory(REFCLSID rclsid);

    //	IUnknown methods
    STDMETHOD(QueryInterface)(REFIID riid, void **ppUnk);
    DECLARE_STD_REFCOUNTING;


    //	IClassFactory methods
    STDMETHOD(CreateInstance)(IUnknown *punkOuter,
			      REFIID   riid,
			      void     **ppunkObject);

    STDMETHOD(LockServer)(BOOL fLock);

private:
		    ~CQIClassFactory(void);

    CLSID	_clsid;
};
	
#endif	//  __CQICLASSFACTORY__