#include <stdbool.h>#include <sys/types.h>
Include dependency graph for mview.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | MailboxView |
| View of a Mailbox. More... | |
| struct | EventMview |
| An Event that happened to an MailboxView. More... | |
Enumerations | |
| enum | NotifyMview { NT_MVIEW_ADD = 1 , NT_MVIEW_DELETE , NT_MVIEW_CHANGE } |
| Types of MailboxView Event. More... | |
Functions | |
| void | mview_free (struct MailboxView **ptr) |
| Free a MailboxView. | |
| int | mview_mailbox_observer (struct NotifyCallback *nc) |
| Notification that a Mailbox has changed - Implements observer_t -. | |
| struct MailboxView * | mview_new (struct Mailbox *m, struct Notify *parent) |
| Create a new MailboxView. | |
| void | mview_update (struct MailboxView *mv) |
| Update the MailboxView's message counts. | |
| bool | mview_has_limit (const struct MailboxView *mv) |
| Is a limit active? | |
| struct Mailbox * | mview_mailbox (struct MailboxView *mv) |
| Wrapper to get the mailbox in a MailboxView, or NULL. | |
| bool | message_is_tagged (struct Email *e) |
| Is a message in the index tagged (and within limit) | |
| struct Email * | mutt_get_virt_email (struct Mailbox *m, int vnum) |
| Get a virtual Email. | |
| int | ea_add_tagged (struct EmailArray *ea, struct MailboxView *mv, struct Email *e, bool use_tagged) |
| Get an array of the tagged Emails. | |
| bool | mutt_limit_current_thread (struct MailboxView *mv, struct Email *e) |
| Limit the email view to the current thread. | |
View of a Mailbox.
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 mview.h.
| enum NotifyMview |
Types of MailboxView Event.
Observers of NT_MVIEW will be passed an EventMview.
| Enumerator | |
|---|---|
| NT_MVIEW_ADD | The Mview has been opened. |
| NT_MVIEW_DELETE | The Mview is about to be destroyed. |
| NT_MVIEW_CHANGE | The Mview has changed. |
| void mview_free | ( | struct MailboxView ** | ptr | ) |
Free a MailboxView.
| [out] | ptr | MailboxView to free |
Definition at line 49 of file mview.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct MailboxView * mview_new | ( | struct Mailbox * | m, |
| struct Notify * | parent ) |
Create a new MailboxView.
| m | Mailbox |
| parent | Notification parent |
| ptr | New MailboxView |
Definition at line 90 of file mview.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mview_update | ( | struct MailboxView * | mv | ) |
Update the MailboxView's message counts.
| mv | Mailbox View |
this routine is called to update the counts in the MailboxView structure
Definition at line 138 of file mview.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool mview_has_limit | ( | const struct MailboxView * | mv | ) |
Is a limit active?
| mv | MailboxView |
| true | A limit is active |
| false | No limit is active |
Definition at line 438 of file mview.c.
Here is the caller graph for this function:| struct Mailbox * mview_mailbox | ( | struct MailboxView * | mv | ) |
Wrapper to get the mailbox in a MailboxView, or NULL.
| mv | MailboxView |
| ptr | The mailbox in the MailboxView |
| NULL | MailboxView is NULL or doesn't have a mailbox |
Definition at line 449 of file mview.c.
Here is the caller graph for this function:| bool message_is_tagged | ( | struct Email * | e | ) |
Get a virtual Email.
| m | Mailbox |
| vnum | Virtual index number |
This safely gets the result of the following:
mailbox->emails[mailbox->v2r[vnum]] Definition at line 417 of file mview.c.
Here is the caller graph for this function:| int ea_add_tagged | ( | struct EmailArray * | ea, |
| struct MailboxView * | mv, | ||
| struct Email * | e, | ||
| bool | use_tagged ) |
Get an array of the tagged Emails.
| ea | Empty EmailArray to populate |
| mv | Current Mailbox |
| e | Current Email |
| use_tagged | Use tagged Emails |
| num | Number of selected emails |
| -1 | Error |
Definition at line 377 of file mview.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool mutt_limit_current_thread | ( | struct MailboxView * | mv, |
| struct Email * | e ) |
Limit the email view to the current thread.
| true | Success |
| false | Failure |
Definition at line 480 of file mview.c.
Here is the call graph for this function:
Here is the caller graph for this function: