root/ash/system/chromeos/network/network_detailed_view.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H
#define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H

#include "ash/system/tray/tray_details_view.h"
#include "chromeos/network/network_state_handler.h"

namespace ash {
namespace tray {

// Abstract base class for all NetworkDetailedView derived subclasses,
// which includes NetworkWifiDetailedView and NetworkStateListDetailedView.
class NetworkDetailedView : public TrayDetailsView {
 public:
  enum DetailedViewType {
    LIST_VIEW,
    STATE_LIST_VIEW,
    WIFI_VIEW,
  };

  explicit NetworkDetailedView(SystemTrayItem* owner)
      : TrayDetailsView(owner) {
  }

  virtual void Init() = 0;

  virtual DetailedViewType GetViewType() const = 0;

  // Called when network manager state has changed.
  // (Generic update for NetworkTray <> AshSystemTrayDelegate interface).
  virtual void ManagerChanged() = 0;

  // Called when the contents of the network list have changed.
  // (Called only from TrayNetworkStateObserver).
  virtual void NetworkListChanged() = 0;

  // Called when a network service property has changed.
  // (Called only from TrayNetworkStateObserver).
  virtual void NetworkServiceChanged(const chromeos::NetworkState* network) = 0;

 protected:
  virtual ~NetworkDetailedView() {}
};

}  // namespace tray
}  // namespace ash

#endif  // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H

/* [<][>][^][v][top][bottom][index][help] */