Skip to content

Commit

Permalink
Remove some leftovers from MeegoTouch
Browse files Browse the repository at this point in the history
Dependency removed years ago in commit af697ce
  • Loading branch information
pvuorela committed May 2, 2018
1 parent 28d3e5c commit 1de3da9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 105 deletions.
5 changes: 0 additions & 5 deletions src/contentaction.h
Expand Up @@ -36,7 +36,6 @@
# endif
#endif

class MLabel;
class MDesktopEntry;

namespace ContentAction
Expand Down Expand Up @@ -109,9 +108,5 @@ LCA_EXPORT void setMimeDefault(const QString& mimeType, const Action& action);
LCA_EXPORT void setMimeDefault(const QString& mimeType, const QString& app);
LCA_EXPORT void resetMimeDefault(const QString& mimeType);

LCA_EXPORT void highlightLabel(MLabel *label);
LCA_EXPORT void highlightLabel(MLabel *label, QStringList typesToHighlight);
LCA_EXPORT void dehighlightLabel(MLabel *label);

} // end namespace
#endif
23 changes: 2 additions & 21 deletions src/doc.h
Expand Up @@ -17,10 +17,7 @@ from libcontentaction.
For file URIs, the library finds out the MIME type and uses it as a key of the
association. For objects stored in Tracker, the library adds the custom MIME
types that target them. Finally, the library provides
ContentAction::highlightLabel(), which adds highlighters to an MLabel based on
the actions associated with regular expressions (such as phone numbers and
e-mail addresses).
types that target them.
Actions can target one of the following:
Expand Down Expand Up @@ -260,19 +257,7 @@ applicable actions. When launched, an action gets the string
\section highlighter Free-text highlighter
\attention
The following section may be subject to changes!
Passing an MLabel* to ContentAction::Action::highlightLabel() adds a
MLabelHighlighter which highlights interesting elements inside the label. When
the user clicks a highlighted element, the default action for it is launched.
When the user long-clicks a highlighted element, a pop-up menu containing the
applicable actions is shown. When the user clicks an item in the menu, the
corresponding action is launched.
These actions have different semantics than ordinary Actions. When
triggered, they call the method with a single element list containing the
matched text (as UTF-8). Note that these are very likely invalid URIs.
FIXME: missing proper documentation for highlighting.
Similarly to Tracker conditions, regexps are also defined in .xml files
located in \c /usr/share/contentaction (unless overridden with
Expand All @@ -293,10 +278,6 @@ custom MIME types. When launched, they get a string which matches the regular
expression as a parameter. For example, an application handling
\c x-maemo-highlight/phone-number might get "+ 123 456-789" as a parameter.
More information:
<a href="http://apidocs.meego.com/mtf/class_m_label.html">MLabel documentation</a>
\section exampledesktop An example .desktop file
The following example illustrates the interesting .desktop file fields from the
Expand Down
79 changes: 0 additions & 79 deletions tests/hldemo.cpp

This file was deleted.

0 comments on commit 1de3da9

Please sign in to comment.