Data shared between Index, Pager and Sidebar. More...
#include "config.h"
#include <stdbool.h>
#include "mutt/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "shared_data.h"
#include "lib.h"
#include "pattern/lib.h"
#include "mview.h"
Go to the source code of this file.
Functions | |
static int | index_shared_mview_observer (struct NotifyCallback *nc) |
Notification that the MailboxView has changed - Implements observer_t -. | |
static int | index_shared_account_observer (struct NotifyCallback *nc) |
Notification that an Account has changed - Implements observer_t -. | |
static int | index_shared_mailbox_observer (struct NotifyCallback *nc) |
Notification that a Mailbox has changed - Implements observer_t -. | |
static int | index_shared_email_observer (struct NotifyCallback *nc) |
Notification that an Email has changed - Implements observer_t -. | |
void | index_shared_data_set_mview (struct IndexSharedData *shared, struct MailboxView *mv) |
Set the MailboxView for the Index and friends. | |
void | index_shared_data_set_email (struct IndexSharedData *shared, struct Email *e) |
Set the current Email for the Index and friends. | |
bool | index_shared_data_is_cur_email (const struct IndexSharedData *shared, const struct Email *e) |
Check whether an email is the currently selected Email. | |
void | index_shared_data_free (struct MuttWindow *win, void **ptr) |
Free Shared Index Data - Implements MuttWindow::wdata_free() -. | |
struct IndexSharedData * | index_shared_data_new (void) |
Create new Index Data. | |
Data shared between Index, Pager and Sidebar.
This program 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 this program. If not, see http://www.gnu.org/licenses/.
Definition in file shared_data.c.
void index_shared_data_set_mview | ( | struct IndexSharedData * | shared, |
struct MailboxView * | mv | ||
) |
Set the MailboxView for the Index and friends.
shared | Shared Index data |
mv | Mailbox View, may be NULL |
Definition at line 160 of file shared_data.c.
void index_shared_data_set_email | ( | struct IndexSharedData * | shared, |
struct Email * | e | ||
) |
Set the current Email for the Index and friends.
shared | Shared Index data |
e | Current Email, may be NULL |
Definition at line 235 of file shared_data.c.
bool index_shared_data_is_cur_email | ( | const struct IndexSharedData * | shared, |
const struct Email * | e | ||
) |
Check whether an email is the currently selected Email.
shared | Shared Index data |
e | Email to check |
true | e is current |
false | e is not current |
Definition at line 264 of file shared_data.c.
struct IndexSharedData * index_shared_data_new | ( | void | ) |
Create new Index Data.
ptr | New IndexSharedData |
Definition at line 307 of file shared_data.c.