browser/ui/inc/ARView.h
changeset 0 c316ab048e9d
equal deleted inserted replaced
-1:000000000000 0:c316ab048e9d
       
     1 /*
       
     2  * Name        : ARView.h
       
     3  * Description : 
       
     4  * Project     : This file is part of OpenMAR, an Open Mobile Augmented Reality browser
       
     5  * Website     : http://OpenMAR.org
       
     6  *
       
     7  * Copyright (c) 2010 David Caabeiro
       
     8  *
       
     9  * All rights reserved. This program and the accompanying materials are made available 
       
    10  * under the terms of the Eclipse Public License v1.0 which accompanies this 
       
    11  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
       
    12  *
       
    13  */
       
    14 
       
    15 #ifndef __ARVIEW_H__
       
    16 #define __ARVIEW_H__
       
    17 
       
    18 #include <AknView.h>
       
    19 
       
    20 #include <AknToolbar.h>
       
    21 #include <AknToolbarExtension.h>
       
    22 #include <AknToolbarObserver.h>
       
    23 
       
    24 class CARContainer;
       
    25 
       
    26 /**
       
    27  * @brief AR Avkon view
       
    28  */
       
    29 class CARView : public CAknView, public MAknToolbarObserver
       
    30 {
       
    31 public:
       
    32     static CARView* NewL();
       
    33     ~CARView();
       
    34 
       
    35 protected:
       
    36     CARView();
       
    37     void ConstructL();
       
    38 
       
    39 protected:
       
    40     TUid Id() const;
       
    41     void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage);
       
    42     void DoDeactivate();
       
    43 
       
    44     void DynInitToolbarL(TInt aResourceId, CAknToolbar* aToolbar);
       
    45 
       
    46     void OfferToolbarEventL(TInt aCommand);
       
    47     void HandleCommandL(TInt aCommand);
       
    48 
       
    49 private:
       
    50     TVwsViewId iPrevViewId;
       
    51     CARContainer* iRenderer;
       
    52 };
       
    53 
       
    54 #endif  // __ARVIEW_H__