text: //=========================================================================
  // Copyright (C) 2012 The Elastos Open Source Project
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //      http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  //=========================================================================
  
  #ifndef __ELASTOS_DROID_SERVER_AM_LAUNCHWARNINTWINDOW_H__
  #define __ELASTOS_DROID_SERVER_AM_LAUNCHWARNINTWINDOW_H__
  
  #include "elastos/droid/ext/frameworkext.h"
  #include "elastos/droid/server/am/ActivityRecord.h"
  #include "elastos/droid/app/Dialog.h"
  
  using Elastos::Droid::App::Dialog;
  
  namespace Elastos {
  namespace Droid {
  namespace Server {
  namespace Am {
  
  class LaunchWarningWindow
      : public Dialog
  {
  public:
  
      CARAPI OnKeyDown(
          /* [in] */ Int32 keyCode,
          /* [in] */ IKeyEvent* event,
          /* [out] */ Boolean* result);
  
      CARAPI OnKeyLongPress(
          /* [in] */ Int32 keyCode,
          /* [in] */ IKeyEvent* event,
          /* [out] */ Boolean* result);
  
      CARAPI OnKeyUp(
          /* [in] */ Int32 keyCode,
          /* [in] */ IKeyEvent* event,
          /* [out] */ Boolean* result);
  
      CARAPI OnKeyMultiple(
          /* [in] */ Int32 keyCode,
          /* [in] */ Int32 count,
          /* [in] */ IKeyEvent* event,
          /* [out] */ Boolean* result);
  
      LaunchWarningWindow(
          /* [in] */ IContext* context,
          /* [in] */ ActivityRecord* cur,
          /* [in] */ ActivityRecord* next);
  
      CARAPI OnCreateContextMenu(
          /* [in] */ IContextMenu* menu,
          /* [in] */ IView* v,
          /* [in] */ IContextMenuInfo* menuInfo);
  
  };
  
  } // namespace Am
  } // namespace Server
  } // namespace Droid
  } // namespace Elastos
  
  #endif // __ELASTOS_DROID_SERVER_AM_LAUNCHWARNINTWINDOW_H__
  