Commit 2a57c2fb authored by David Jarvie's avatar David Jarvie
Browse files

Add comments

parent 39698193
Pipeline #69423 passed with stage
in 10 minutes and 42 seconds
......@@ -35,12 +35,26 @@ public:
*/
Type type(const QModelIndex& ix) const;
Resource resource(ResourceId) const;
Resource resource(const QModelIndex&) const;
QModelIndex resourceIndex(const Resource&) const;
QModelIndex resourceIndex(ResourceId) const;
/** Return the resource with the given ID. */
Resource resource(ResourceId) const;
/** Return the resource referred to by an index.
* @return the resource, or invalid resource if the index is not for a resource.
*/
Resource resource(const QModelIndex&) const;
/** Return the QModelIndex of a resource. */
QModelIndex resourceIndex(const Resource&) const;
/** Return the QModelIndex of a resource. */
QModelIndex resourceIndex(ResourceId) const;
/** Return the event with the given ID. */
KAEvent event(const QString& eventId) const;
/** Return the event referred to by an index.
* @return the event, or invalid event if the index is not for an event.
*/
KAEvent event(const QModelIndex&) const;
using QObject::event; // prevent warning about hidden virtual method
......
......@@ -308,7 +308,7 @@ public:
*/
void close();
/** Return all events belonging to this resource. */
/** Return all events belonging to this resource, for enabled alarm types. */
QList<KAEvent> events() const;
/** Return the event with the given ID, provided its alarm type is enabled for
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment