Developer Area

root/apps/windows_mobile/trunk/Smartphone/DottelSP/dottel/ClassFactory.h @ 597

Revision 597, 2.4 kB (checked in by nadya, 5 years ago)

.tel for WinMobile (Smart) src for v1.0

Line 
1/*
2 * Copyright (c) 2008, Telnic Ltd.
3 * All rights reserved.
4 * Redistribution and use in source and binary forms, with or without modification,
5 * are permitted provided that the following conditions are met:
6 * • Redistributions of source code must retain the above copyright notice,
7 *   this list of conditions and the following disclaimer.
8 * • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
9 *   the following disclaimer in the documentation and/or other materials provided with the distribution.
10 * • Neither the name of the Telnic Ltd. nor the names of its contributors may be used to endorse or promote
11 *   products derived from this software without specific prior written permission.
12 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
13 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
14 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
15 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
16 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
18 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
19 * THE POSSIBILITY OF SUCH DAMAGE.
20 */
21/*
22 * Filename: ClassFactory.h
23 * Description:
24 * Implementation of the contacts menu extensions
25 */
26extern ULONG g_dwDLLRefCount;
27
28// **************************************************************************
29// DottelClassFactory
30//
31//  This is a simple implementation of a class which is used to instantiate
32//  another class... specifically the DottelMenuExtension COM class
33//
34//  This class is instantiated/constructed by DllGetClassObject (see Main.cpp)
35//
36class DottelClassFactory : public IClassFactory
37{
38private:
39    long m_cRef;
40
41public:
42    DottelClassFactory();
43    virtual ~DottelClassFactory();
44
45    // IUnknown interface
46    STDMETHODIMP QueryInterface(REFIID riid, void** ppObject);
47
48    STDMETHODIMP_(ULONG) AddRef(); 
49    STDMETHODIMP_(ULONG) Release();
50
51    STDMETHODIMP CreateInstance(IUnknown *pUnkOuter, REFIID riid, void** ppObject);
52    STDMETHODIMP LockServer(BOOL fLock);
53};
54
55//End--
Note: See TracBrowser for help on using the browser.
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us