2018-08-07 15:01:15 +03:00
|
|
|
/*
|
|
|
|
* meli - ui crate.
|
|
|
|
*
|
|
|
|
* Copyright 2017-2018 Manos Pitsidianakis
|
|
|
|
*
|
|
|
|
* This file is part of meli.
|
|
|
|
*
|
|
|
|
* meli 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.
|
|
|
|
*
|
|
|
|
* meli 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 meli. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2018-08-06 22:20:34 +03:00
|
|
|
/*!
|
|
|
|
* User actions that need to be handled by the UI
|
|
|
|
*/
|
|
|
|
|
2018-08-23 15:36:52 +03:00
|
|
|
pub use melib::mailbox::{SortField, SortOrder};
|
2018-08-07 11:47:26 +03:00
|
|
|
|
|
|
|
#[derive(Debug, Clone)]
|
2018-08-25 12:59:16 +03:00
|
|
|
pub enum PlainListingAction {
|
2018-08-05 16:26:42 +03:00
|
|
|
ToggleThreaded,
|
|
|
|
}
|
|
|
|
|
2018-08-07 11:47:26 +03:00
|
|
|
#[derive(Debug, Clone)]
|
2018-08-05 16:26:42 +03:00
|
|
|
pub enum Action {
|
2018-08-25 12:59:16 +03:00
|
|
|
PlainListing(PlainListingAction),
|
2018-08-05 16:26:42 +03:00
|
|
|
ViewMailbox(usize),
|
2018-08-07 11:47:26 +03:00
|
|
|
Sort(SortField, SortOrder),
|
|
|
|
SubSort(SortField, SortOrder),
|
2018-08-05 16:26:42 +03:00
|
|
|
}
|