NCOverlayFactory.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * Copyright (c) 2000-2013 Liferay, Inc. 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 NCOVERLAYFACTORY_H
  15. #define NCOVERLAYFACTORY_H
  16. #pragma once
  17. #include <unknwn.h>
  18. enum State {
  19. State_Error = 0,
  20. State_OK, State_OKShared,
  21. State_Sync,
  22. State_Warning
  23. };
  24. class NCOverlayFactory : public IClassFactory
  25. {
  26. public:
  27. NCOverlayFactory(int state);
  28. IFACEMETHODIMP_(ULONG) AddRef();
  29. IFACEMETHODIMP CreateInstance(IUnknown *pUnkOuter, REFIID riid, void **ppv);
  30. IFACEMETHODIMP LockServer(BOOL fLock);
  31. IFACEMETHODIMP QueryInterface(REFIID riid, void **ppv);
  32. IFACEMETHODIMP_(ULONG) Release();
  33. protected:
  34. ~NCOverlayFactory();
  35. private:
  36. long _referenceCount;
  37. int _state;
  38. };
  39. #endif