cameralitycontainer.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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: Camerality UI container.
  15. *
  16. */
  17. #ifndef CAMERALITYCONTAINER_H_
  18. #define CAMERALITYCONTAINER_H_
  19. // INCLUDES
  20. #include "cameralitybasecontainer.h"
  21. // FORWARD DECLARATIONS
  22. class CAknAppUi;
  23. class CCameralityGLContainer;
  24. class CCameralityViewfinderContainer;
  25. class CCameralityInfoContainer;
  26. // CLASS DECLARATION
  27. /**
  28. * Container control class that handles the rendering engine initialization and deinitializations.
  29. * Also uses the CCameralityGLRenderer class to do the actual rendering.
  30. */
  31. class CCameralityContainer : public CCameralityBaseContainer, MCoeControlObserver
  32. {
  33. public: // Constructors and destructor
  34. static CCameralityContainer* NewL();
  35. virtual ~CCameralityContainer();
  36. public: // Functions from base classes
  37. void Show(const TRect& extent);
  38. void Hide();
  39. public: // New methods
  40. void StartAllActivityL();
  41. void StopAllActivity();
  42. private:
  43. void SizeChanged();
  44. void HandleResourceChange(TInt aType);
  45. TInt CountComponentControls() const;
  46. CCoeControl* ComponentControl(TInt aIndex) const;
  47. void Draw(const TRect& aRect) const;
  48. void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
  49. private: // New methods
  50. void StartViewfinderL();
  51. void StopViewfinder();
  52. void StartAnimationL();
  53. void StopAnimation();
  54. void StartProfilingL();
  55. void StopProfiling();
  56. TRect CalculateRect();
  57. void AdjustOrdinals();
  58. private: // Private constructors
  59. CCameralityContainer();
  60. void ConstructL();
  61. private: // Data
  62. CCameralityGLContainer *iGlContainer;
  63. CCameralityViewfinderContainer *iVfContainer;
  64. CCameralityInfoContainer* iInfoContainer;
  65. };
  66. #endif /* CAMERALITYCONTAINER_H_ */
  67. // End of file