Build a selection of Attachments for an action. More...
#include "config.h"#include <stdbool.h>#include <stddef.h>#include "mutt/lib.h"#include "email/lib.h"#include "menu/lib.h"#include "attach.h"#include "recvattach.h"
Include dependency graph for selection.c:Go to the source code of this file.
Functions | |
| static bool | aa_contains_attach (struct AttachPtrArray *aa, struct AttachPtr *ap) |
| Does a working set already include an Attachment? | |
| static void | aa_add_attach (struct AttachPtrArray *aa, struct AttachPtr *ap) |
| Add an Attachment to a working set. | |
| static void | aa_add_folded (struct AttachPtrArray *aa, struct AttachCtx *actx, int rindex) |
| Add an Attachment, expanding collapsed children. | |
| static int | aa_add_tagged (struct AttachPtrArray *aa, struct AttachCtx *actx) |
| Get an array of tagged Attachments. | |
| int | aa_add_selection (struct AttachPtrArray *aa, struct AttachCtx *actx, struct Menu *menu, bool use_tagged, int count) |
| Build a working set of Attachments for an action. | |
| int | ba_add_selection (struct BodyArray *ba, struct AttachCtx *actx, struct Menu *menu, bool use_tagged, int count) |
| Build a working set of attachment bodies for an action. | |
Build a selection of Attachments for an action.
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 selection.c.
|
static |
Does a working set already include an Attachment?
| aa | Selected attachments |
| ap | Candidate attachment |
| true | Attachment is selected |
Definition at line 44 of file selection.c.
Here is the caller graph for this function:
|
static |
Add an Attachment to a working set.
| aa | Selected attachments |
| ap | Attachment to add |
Definition at line 64 of file selection.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add an Attachment, expanding collapsed children.
| aa | Selected attachments |
| actx | List of Attachments |
| rindex | Real attachment index |
Definition at line 76 of file selection.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get an array of tagged Attachments.
| aa | Empty AttachPtrArray to populate |
| actx | List of Attachments |
| num | Number of selected Attachments |
| -1 | Error |
Definition at line 101 of file selection.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int aa_add_selection | ( | struct AttachPtrArray * | aa, |
| struct AttachCtx * | actx, | ||
| struct Menu * | menu, | ||
| bool | use_tagged, | ||
| int | count ) |
Build a working set of Attachments for an action.
| aa | Empty AttachPtrArray to populate |
| actx | List of Attachments |
| menu | Menu |
| use_tagged | Use tagged attachments |
| count | Repeat-count (0 or 1 == current selection) |
| num | Number of selected Attachments |
| -1 | Error |
Definition at line 125 of file selection.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int ba_add_selection | ( | struct BodyArray * | ba, |
| struct AttachCtx * | actx, | ||
| struct Menu * | menu, | ||
| bool | use_tagged, | ||
| int | count ) |
Build a working set of attachment bodies for an action.
| ba | Empty BodyArray to populate |
| actx | List of Attachments |
| menu | Menu |
| use_tagged | Use tagged attachments |
| count | Repeat-count (0 or 1 == current selection) |
| num | Number of selected Attachments |
| -1 | Error |
Definition at line 164 of file selection.c.
Here is the call graph for this function:
Here is the caller graph for this function: