lib/mu-msg: update to use mu-message-fields
Remove mu-msg-fields.[ch] and update sources to use mu-message-fields.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2012-2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
** Copyright (C) 2012-2022 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify it
|
||||
** under the terms of the GNU General Public License as published by the
|
||||
@ -22,6 +22,7 @@
|
||||
|
||||
#include <glib.h>
|
||||
#include <utils/mu-util.h>
|
||||
#include "mu-message.hh"
|
||||
|
||||
namespace Mu {
|
||||
|
||||
@ -54,35 +55,35 @@ void mu_msg_doc_destroy(MuMsgDoc* self);
|
||||
* get a string parameter from the msgdoc
|
||||
*
|
||||
* @param self a MuMsgDoc instance
|
||||
* @param mfid a MuMsgFieldId for a string field
|
||||
* @param mfid a Message::Field::Id for a string field
|
||||
*
|
||||
* @return a string for the given field (see do_free), or NULL in case of error.
|
||||
* free with g_free
|
||||
*/
|
||||
gchar* mu_msg_doc_get_str_field(MuMsgDoc* self, MuMsgFieldId mfid) G_GNUC_WARN_UNUSED_RESULT;
|
||||
gchar* mu_msg_doc_get_str_field(MuMsgDoc* self, Message::Field::Id mfid) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
* get a string-list parameter from the msgdoc
|
||||
*
|
||||
* @param self a MuMsgDoc instance
|
||||
* @param mfid a MuMsgFieldId for a string-list field
|
||||
* @param mfid a Message::Field::Id for a string-list field
|
||||
*
|
||||
* @return a list for the given field (see do_free), or NULL in case
|
||||
* of error. free with mu_str_free_list
|
||||
*/
|
||||
GSList* mu_msg_doc_get_str_list_field(MuMsgDoc* self, MuMsgFieldId mfid) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* mu_msg_doc_get_str_list_field(MuMsgDoc* self, Message::Field::Id mfid) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
*
|
||||
* get a numeric parameter from the msgdoc
|
||||
*
|
||||
* @param self a MuMsgDoc instance
|
||||
* @param mfid a MuMsgFieldId for a numeric field
|
||||
* @param mfid a Message::Field::Id for a numeric field
|
||||
*
|
||||
* @return the numerical value, or -1 in case of error. You'll need to
|
||||
* cast this value to the actual type (e.g. time_t for MU_MSG_FIELD_ID_DATE)
|
||||
* cast this value to the actual type (e.g. time_t for Field::Id::Date)
|
||||
*/
|
||||
gint64 mu_msg_doc_get_num_field(MuMsgDoc* self, MuMsgFieldId mfid);
|
||||
gint64 mu_msg_doc_get_num_field(MuMsgDoc* self, Message::Field::Id mfid);
|
||||
|
||||
} // namespace Mu
|
||||
|
||||
|
||||
Reference in New Issue
Block a user