2015-01-22 20:44:54 +03:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015 Daniel Molkentin <danimo@owncloud.com>. All rights reserved.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or modify it under
|
|
|
|
* the terms of the GNU Lesser General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 2.1 of the License, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2020-08-18 20:11:08 +03:00
|
|
|
#ifndef NCCONTEXTMENUFACTORY_H
|
|
|
|
#define NCCONTEXTMENUFACTORY_H
|
2015-01-22 20:44:54 +03:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <unknwn.h> // For IClassFactory
|
|
|
|
|
2020-08-18 20:11:08 +03:00
|
|
|
class NCContextMenuFactory : public IClassFactory
|
2015-01-22 20:44:54 +03:00
|
|
|
{
|
|
|
|
public:
|
2017-01-05 19:28:28 +03:00
|
|
|
// IUnknown
|
|
|
|
IFACEMETHODIMP QueryInterface(REFIID riid, void **ppv);
|
|
|
|
IFACEMETHODIMP_(ULONG) AddRef();
|
|
|
|
IFACEMETHODIMP_(ULONG) Release();
|
2015-01-22 20:44:54 +03:00
|
|
|
|
2017-01-05 19:28:28 +03:00
|
|
|
// IClassFactory
|
|
|
|
IFACEMETHODIMP CreateInstance(IUnknown *pUnkOuter, REFIID riid, void **ppv);
|
|
|
|
IFACEMETHODIMP LockServer(BOOL fLock);
|
2015-01-22 20:44:54 +03:00
|
|
|
|
2020-08-18 20:11:08 +03:00
|
|
|
NCContextMenuFactory();
|
2015-01-22 20:44:54 +03:00
|
|
|
|
|
|
|
private:
|
2020-08-18 20:11:08 +03:00
|
|
|
~NCContextMenuFactory();
|
2017-01-05 19:28:28 +03:00
|
|
|
long m_cRef;
|
2015-01-22 20:44:54 +03:00
|
|
|
};
|
|
|
|
|
2020-08-18 20:11:08 +03:00
|
|
|
#endif //NCCONTEXTMENUFACTORY_H
|