cameralityviewfindercontainer.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (c) 2010-2011 Nokia Corporation and/or its subsidiary(-ies).
  3. * All rights reserved.
  4. * This component and the accompanying materials are made available
  5. * under the terms of "Eclipse Public License v1.0"
  6. * which accompanies this distribution, and is available
  7. * at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8. *
  9. * Initial Contributors:
  10. * Nokia Corporation - initial contribution.
  11. *
  12. * Contributors:
  13. *
  14. * Description: Viewfinder container.
  15. *
  16. */
  17. #ifndef CAMERALITYVIEWFINDERCONTAINER_H_
  18. #define CAMERALITYVIEWFINDERCONTAINER_H_
  19. #include "cameralitybasecontainer.h"
  20. #include "cameralityviewfinder.h"
  21. class CCameralityViewfinderContainer :
  22. public CCameralityBaseContainer,
  23. public MCameralityViewfinderObserver
  24. {
  25. public: // Constructors and destructor
  26. static CCameralityViewfinderContainer* NewL();
  27. virtual ~CCameralityViewfinderContainer();
  28. public: // From MCameralityViewfinderObserver
  29. virtual void ViewfinderStateChanged(
  30. CCameralityViewfinder::TViewfinderState oldState,
  31. CCameralityViewfinder::TViewfinderState newState);
  32. virtual void ViewfinderError(TInt aError);
  33. public: // From CCameralityBaseContainer
  34. void Show(const TRect& extent);
  35. void Hide();
  36. private: // Functions from base classes
  37. void SizeChanged();
  38. void Draw(const TRect& aRect) const;
  39. private: // Private constructors
  40. CCameralityViewfinderContainer();
  41. void ConstructL();
  42. private: //data
  43. CCameralityViewfinder* iViewfinder;
  44. TInt iError;
  45. };
  46. #endif /* CAMERALITYVIEWFINDERCONTAINER_H_ */
  47. // end of file