Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
2a57c2fb
Commit
2a57c2fb
authored
Jul 09, 2021
by
David Jarvie
Browse files
Add comments
parent
39698193
Pipeline
#69423
passed with stage
in 10 minutes and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/resources/fileresourcedatamodel.h
View file @
2a57c2fb
...
...
@@ -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
...
...
src/resources/resource.h
View file @
2a57c2fb
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment