/*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
dnSpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with dnSpy. If not, see .
*/
using System.Collections.ObjectModel;
namespace dnSpy.Contracts.Hex.Intellisense {
///
/// Intellisense session stack
///
public abstract class HexIntellisenseSessionStack {
///
/// Constructor
///
protected HexIntellisenseSessionStack() { }
///
/// Adds a session to the top of the stack
///
/// Session
public abstract void PushSession(HexIntellisenseSession session);
///
/// Removes the session from the top of the stack
///
///
public abstract HexIntellisenseSession? PopSession();
///
/// Moves a session to the top of the stack
///
/// Session
public abstract void MoveSessionToTop(HexIntellisenseSession session);
///
/// Gets all sessions
///
public abstract ReadOnlyObservableCollection Sessions { get; }
///
/// Gets the session at the top of the stack or null if none
///
public abstract HexIntellisenseSession? TopSession { get; }
///
/// Collapses all sessions
///
public abstract void CollapseAllSessions();
}
}