OCOverlayFactory.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 OCOVERLAYFACTORY_H
  15. #define OCOVERLAYFACTORY_H
  16. #pragma once
  17. enum State {
  18. State_Error = 0, State_ErrorShared,
  19. State_OK, State_OKShared,
  20. State_Sync, State_SyncShared,
  21. State_Warning, State_WarningShared
  22. };
  23. class OCOverlayFactory : public IClassFactory
  24. {
  25. public:
  26. OCOverlayFactory(int state);
  27. IFACEMETHODIMP_(ULONG) AddRef();
  28. IFACEMETHODIMP CreateInstance(IUnknown *pUnkOuter, REFIID riid, void **ppv);
  29. IFACEMETHODIMP LockServer(BOOL fLock);
  30. IFACEMETHODIMP QueryInterface(REFIID riid, void **ppv);
  31. IFACEMETHODIMP_(ULONG) Release();
  32. protected:
  33. ~OCOverlayFactory();
  34. private:
  35. long _referenceCount;
  36. int _state;
  37. };
  38. #endif