NCContextMenuFactory.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * Copyright (c) 2015 Daniel Molkentin <danimo@owncloud.com>. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. #ifndef NCCONTEXTMENUFACTORY_H
  15. #define NCCONTEXTMENUFACTORY_H
  16. #pragma once
  17. #include <unknwn.h> // For IClassFactory
  18. class NCContextMenuFactory : public IClassFactory
  19. {
  20. public:
  21. // IUnknown
  22. IFACEMETHODIMP QueryInterface(REFIID riid, void **ppv);
  23. IFACEMETHODIMP_(ULONG) AddRef();
  24. IFACEMETHODIMP_(ULONG) Release();
  25. // IClassFactory
  26. IFACEMETHODIMP CreateInstance(IUnknown *pUnkOuter, REFIID riid, void **ppv);
  27. IFACEMETHODIMP LockServer(BOOL fLock);
  28. NCContextMenuFactory();
  29. private:
  30. ~NCContextMenuFactory();
  31. long m_cRef;
  32. };
  33. #endif //NCCONTEXTMENUFACTORY_H