Data shared between Index, Pager and Sidebar. More...
#include <stdbool.h>#include <stdio.h>
Include dependency graph for shared_data.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | IndexSharedData |
| Data shared between Index, Pager and Sidebar. More... | |
Enumerations | |
| enum | ExpandoDataIndex { ED_IND_DELETED_COUNT = 1 , ED_IND_DESCRIPTION , ED_IND_FLAGGED_COUNT , ED_IND_LIMIT_COUNT , ED_IND_LIMIT_PATTERN , ED_IND_LIMIT_SIZE , ED_IND_MAILBOX_PATH , ED_IND_MAILBOX_SIZE , ED_IND_MESSAGE_COUNT , ED_IND_NEW_COUNT , ED_IND_OLD_COUNT , ED_IND_POSTPONED_COUNT , ED_IND_READONLY , ED_IND_READ_COUNT , ED_IND_TAGGED_COUNT , ED_IND_UNREAD_COUNT , ED_IND_UNREAD_MAILBOXES } |
| Expando UIDs for the Index. More... | |
Functions | |
| 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. | |
| 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_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. | |
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.h.
| enum ExpandoDataIndex |
Expando UIDs for the Index.
Definition at line 54 of file shared_data.h.
| struct IndexSharedData * index_shared_data_new | ( | void | ) |
Create new Index Data.
| ptr | New IndexSharedData |
Definition at line 307 of file shared_data.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function: