Translations:Projects/Nepomuk/Resources/39/en

From KDE TechBase
Revision as of 10:30, 11 March 2016 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<syntaxhighlight lang="cpp-qt">

 /**
  * This resource won't be saved to the database because
  * there is no property assigned to it
  */
 Nepomuk2::Resource notSaved("file:///tmp/notsaved.txt");
 
 /**
  * This resource will be saved to the database because we
  * set a property to it
  */
 Nepomuk2::Resource saved("file:///tmp/saved.txt");
 
 saved.addProperty(Nepomuk2::Vocabulary::NIE::comment(), Nepomuk2::Variant("This will be saved"));
 
 /**
  * This is saved to a resource with the Nepomuk2::HistoryItem type
  * because we set a property of it
  */
 Nepomuk2::HistoryItem typedResource("file:///tmp/typedResource.txt");