Skip to content

Commit ccf5a19

Browse files
committed
Document MimeInfoEditor
1 parent 6b1fed2 commit ccf5a19

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/libappimage/desktop_integration/integrator/MimeInfoEditor.h

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ namespace appimage {
1111
namespace desktop_integration {
1212
namespace integrator {
1313
/**
14-
* @brief Modifies MimeInfo files to be deployed.
15-
*
16-
*
14+
* @brief Edit MimeInfo files to be deployed
1715
*/
1816
class MimeInfoEditor {
1917
public:
@@ -24,10 +22,22 @@ namespace appimage {
2422
*/
2523
MimeInfoEditor(std::string data);
2624

25+
/**
26+
* Set the deploy id to be prepended to the icon file name
27+
* @param deployId
28+
*/
2729
void setDeployId(const std::string& deployId);
2830

31+
/**
32+
* Apply modification to the MimeInfo file
33+
* @return modified MimeInfo
34+
*/
2935
std::string edit();
3036

37+
/**
38+
* Extract the icon names from from the icon entry or the mime type name
39+
* @return names of the icons related to the mime types
40+
*/
3141
std::list<std::string> getMimeTypeIconNames() const;
3242

3343
private:

0 commit comments

Comments
 (0)