~ubuntu-branches/ubuntu/wily/kid3/wily

« back to all changes in this revision

Viewing changes to src/core/model/iframeeditor.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2014-05-05 10:39:24 UTC
  • mfrom: (1.1.17) (2.1.22 sid)
  • Revision ID: package-import@ubuntu.com-20140505103924-9q6a67b7mespmojg
Tags: 3.1-1
* New upstream release.
  - Drop merged patch 01-desktop-keywords.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include "kid3api.h"
31
31
 
 
32
class QObject;
32
33
class Frame;
33
34
class TaggedFile;
34
35
 
40
41
  /**
41
42
   * Destructor.
42
43
   */
43
 
  virtual ~IFrameEditor() = 0;
 
44
  virtual ~IFrameEditor();
44
45
 
45
46
  /**
46
47
   * Let user edit a frame and then update the fields
47
48
   * when the edits are accepted.
 
49
   * frameEdited() is emitted when the edit dialog is closed with the edited
 
50
   * frame as a parameter if it was accepted.
48
51
   *
49
52
   * @param frame frame to edit
50
53
   * @param taggedFile tagged file where frame has to be set
51
 
   *
52
 
   * @return true if frame edits are accepted.
53
54
   */
54
 
  virtual bool editFrameOfTaggedFile(Frame* frame, TaggedFile* taggedFile) = 0;
 
55
  virtual void editFrameOfTaggedFile(const Frame* frame,
 
56
                                     TaggedFile* taggedFile) = 0;
55
57
 
56
58
  /**
57
59
   * Let user select a frame type.
62
64
   * @return false if no frame selected.
63
65
   */
64
66
  virtual bool selectFrame(Frame* frame, const TaggedFile* taggedFile) = 0;
 
67
 
 
68
  /**
 
69
   * Return object which emits frameEdited() signal.
 
70
   *
 
71
   * @return object which emits frameEdited() when dialog is closed, its
 
72
   * parameter is the edited frame if the dialog is accepted.
 
73
   */
 
74
  virtual QObject* frameEditedEmitter() = 0;
65
75
};
66
76
 
67
77
#endif // IFRAMEEDITOR_H