~ubuntu-branches/ubuntu/trusty/kdepimlibs/trusty

« back to all changes in this revision

Viewing changes to kcal/incidenceformatter.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg, Rohan Garg, Philip Muškovac
  • Date: 2013-11-23 17:36:44 UTC
  • mfrom: (1.1.102)
  • Revision ID: package-import@ubuntu.com-20131123173644-p5ow94192ezsny8g
Tags: 4:4.11.80-0ubuntu1
[ Rohan Garg ]
* New upstream beta release
  - Bump akonadi requirement to 1.10.45
  - Update install files
  - Update symbols

[ Philip Muškovac ]
* kdepimlibs-dev/-dbg breaks/replaces kdepim-runtime/-dbg (<< 4:4.11.80)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
class Incidence;
42
42
class IncidenceBase;
43
43
 
44
 
class KCAL_EXPORT_DEPRECATED InvitationFormatterHelper
 
44
class KCAL_DEPRECATED_EXPORT InvitationFormatterHelper
45
45
{
46
46
  public:
47
47
    InvitationFormatterHelper() : d( 0 ) {}
80
80
    will shift the Incidence times to different timezones.
81
81
    @since 4.4
82
82
  */
83
 
  KCAL_EXPORT_DEPRECATED QString toolTipStr( Calendar *calendar,
 
83
  KCAL_DEPRECATED_EXPORT QString toolTipStr( Calendar *calendar,
84
84
                                  IncidenceBase *incidence,
85
85
                                  const QDate &date=QDate(),
86
86
                                  bool richText=true,
98
98
    will shift the Incidence times to different timezones.
99
99
    @since 4.5
100
100
  */
101
 
  KCAL_EXPORT_DEPRECATED QString toolTipStr( const QString &sourceName,
 
101
  KCAL_DEPRECATED_EXPORT QString toolTipStr( const QString &sourceName,
102
102
                                  IncidenceBase *incidence,
103
103
                                  const QDate &date=QDate(),
104
104
                                  bool richText=true,
114
114
    @since 4.2
115
115
    @deprecated use toolTipStr( Calendar *, IncidenceBase *, bool, KDateTime::Spec)
116
116
  */
117
 
  KCAL_EXPORT_DEPRECATED QString toolTipStr( IncidenceBase *incidence,
 
117
  KCAL_DEPRECATED_EXPORT QString toolTipStr( IncidenceBase *incidence,
118
118
                                              bool richText=true,
119
119
                                              KDateTime::Spec spec=KDateTime::Spec() );
120
120
 
125
125
    @param richText if yes, the QString will be created as RichText.
126
126
    @deprecated use toolTipStr( Calendar *, IncidenceBase *, bool, KDateTime::Spec)
127
127
  */
128
 
  KCAL_EXPORT_DEPRECATED QString toolTipString( IncidenceBase *incidence,
 
128
  KCAL_DEPRECATED_EXPORT QString toolTipString( IncidenceBase *incidence,
129
129
                                                bool richText=true );
130
130
  /**
131
131
    Create a RichText QString representation of an Incidence in a nice format
138
138
    will shift the Incidence times to different timezones.
139
139
    @since 4.4
140
140
  */
141
 
  KCAL_EXPORT_DEPRECATED QString extensiveDisplayStr( Calendar *calendar,
 
141
  KCAL_DEPRECATED_EXPORT QString extensiveDisplayStr( Calendar *calendar,
142
142
                                           IncidenceBase *incidence,
143
143
                                           const QDate &date=QDate(),
144
144
                                           KDateTime::Spec spec=KDateTime::Spec() );
154
154
    will shift the Incidence times to different timezones.
155
155
    @since 4.5
156
156
  */
157
 
  KCAL_EXPORT_DEPRECATED QString extensiveDisplayStr( const QString &sourceName,
 
157
  KCAL_DEPRECATED_EXPORT QString extensiveDisplayStr( const QString &sourceName,
158
158
                                           IncidenceBase *incidence,
159
159
                                           const QDate &date=QDate(),
160
160
                                           KDateTime::Spec spec=KDateTime::Spec() );
168
168
    @since 4.2
169
169
    @deprecated use extensiveDisplayStr( Calendar *, IncidenceBase *, KDateTime::Spec )
170
170
  */
171
 
  KCAL_EXPORT_DEPRECATED QString extensiveDisplayStr( IncidenceBase *incidence,
 
171
  KCAL_DEPRECATED_EXPORT QString extensiveDisplayStr( IncidenceBase *incidence,
172
172
                                                      KDateTime::Spec spec=KDateTime::Spec() );
173
173
 
174
174
  /**
177
177
    @param incidence is a pointer to the Incidence to be formatted.
178
178
    @deprecated use extensiveDisplayStr( Calendar *, IncidenceBase *, KDateTime::Spec )
179
179
  */
180
 
  KCAL_EXPORT_DEPRECATED QString extensiveDisplayString( IncidenceBase *incidence );
 
180
  KCAL_DEPRECATED_EXPORT QString extensiveDisplayString( IncidenceBase *incidence );
181
181
 
182
182
  /**
183
183
    Create a QString representation of an Incidence in format suitable for
187
187
    will shift the Incidence times to different timezones.
188
188
    @since 4.2
189
189
  */
190
 
  KCAL_EXPORT_DEPRECATED QString mailBodyStr( IncidenceBase *incidence,
 
190
  KCAL_DEPRECATED_EXPORT QString mailBodyStr( IncidenceBase *incidence,
191
191
                                   KDateTime::Spec spec=KDateTime::Spec() );
192
192
 
193
193
  /**
196
196
    @param incidence is a pointer to the Incidence to be formatted.
197
197
    @deprecated use mailBodyStr( IncidenceBase *, KDateTime::Spec )
198
198
  */
199
 
  KCAL_EXPORT_DEPRECATED QString mailBodyString( IncidenceBase *incidence );
 
199
  KCAL_DEPRECATED_EXPORT QString mailBodyString( IncidenceBase *incidence );
200
200
 
201
201
  /**
202
202
    Deliver an HTML formatted string displaying an invitation.
207
207
    @param calendar is a pointer to the Calendar that owns the invitation.
208
208
    @param helper is a pointer to an InvitationFormatterHelper.
209
209
  */
210
 
  KCAL_EXPORT_DEPRECATED QString formatICalInvitation( QString invitation, Calendar *calendar,
 
210
  KCAL_DEPRECATED_EXPORT QString formatICalInvitation( QString invitation, Calendar *calendar,
211
211
                                            InvitationFormatterHelper *helper );
212
212
  /**
213
213
    Deliver an HTML formatted string displaying an invitation.
222
222
    @deprecated use formatICalInvitationNoHtml(const QString &,Calendar *,
223
223
                                               InvitationFormatterHelper *,const QString &) instead.
224
224
  */
225
 
  KCAL_EXPORT_DEPRECATED QString KDE_DEPRECATED formatICalInvitationNoHtml(
 
225
  KCAL_DEPRECATED_EXPORT QString formatICalInvitationNoHtml(
226
226
    QString invitation, Calendar *calendar, InvitationFormatterHelper *helper );
227
227
 
228
228
  /**
238
238
    @param sender is a QString containing the email address of the person sending the invitation.
239
239
    @since 4.5
240
240
  */
241
 
  KCAL_EXPORT_DEPRECATED QString formatICalInvitationNoHtml( const QString &invitation,
 
241
  KCAL_DEPRECATED_EXPORT QString formatICalInvitationNoHtml( const QString &invitation,
242
242
                                                  Calendar *calendar,
243
243
                                                  InvitationFormatterHelper *helper,
244
244
                                                  const QString &sender );
247
247
    Format a TNEF attachment to an HTML mail
248
248
    @since 4.1
249
249
  */
250
 
  KCAL_EXPORT_DEPRECATED QString formatTNEFInvitation( const QByteArray &tnef, Calendar *mCalendar,
 
250
  KCAL_DEPRECATED_EXPORT QString formatTNEFInvitation( const QByteArray &tnef, Calendar *mCalendar,
251
251
                                            InvitationFormatterHelper *helper );
252
252
  /**
253
253
    Transform a TNEF attachment to an iCal or vCard
254
254
    @since 4.1
255
255
  */
256
 
  KCAL_EXPORT_DEPRECATED QString msTNEFToVPart( const QByteArray &tnef );
 
256
  KCAL_DEPRECATED_EXPORT QString msTNEFToVPart( const QByteArray &tnef );
257
257
 
258
258
  /**
259
259
    Build a pretty QString representation of an Incidence's recurrence info.
261
261
    is to be formatted.
262
262
    @since 4.1
263
263
  */
264
 
  KCAL_EXPORT_DEPRECATED QString recurrenceString( Incidence *incidence );
 
264
  KCAL_DEPRECATED_EXPORT QString recurrenceString( Incidence *incidence );
265
265
 
266
266
  /**
267
267
    Returns a reminder string computed for the specified Incidence.
272
272
    else a longer version of each reminder is printed.
273
273
    @since 4.5
274
274
  */
275
 
  KCAL_EXPORT_DEPRECATED QStringList reminderStringList( Incidence *incidence, bool shortfmt = true );
 
275
  KCAL_DEPRECATED_EXPORT QStringList reminderStringList( Incidence *incidence, bool shortfmt = true );
276
276
 
277
277
  /**
278
278
    Build a QString time representation of a KDateTime object.
282
282
    @see dateToString(), dateTimeToString().
283
283
    @since 4.3
284
284
  */
285
 
  KCAL_EXPORT_DEPRECATED QString timeToString( const KDateTime &date, bool shortfmt = true,
 
285
  KCAL_DEPRECATED_EXPORT QString timeToString( const KDateTime &date, bool shortfmt = true,
286
286
                                    const KDateTime::Spec &spec = KDateTime::Spec() );
287
287
 
288
288
  /**
293
293
    @see dateToString(), dateTimeToString().
294
294
    @since 4.3
295
295
  */
296
 
  KCAL_EXPORT_DEPRECATED QString dateToString( const KDateTime &date, bool shortfmt = true,
 
296
  KCAL_DEPRECATED_EXPORT QString dateToString( const KDateTime &date, bool shortfmt = true,
297
297
                                    const KDateTime::Spec &spec = KDateTime::Spec() );
298
298
 
299
299
  /**
305
305
    @see dateToString(), timeToString().
306
306
    @since 4.3
307
307
  */
308
 
  KCAL_EXPORT_DEPRECATED QString dateTimeToString( const KDateTime &date,
 
308
  KCAL_DEPRECATED_EXPORT QString dateTimeToString( const KDateTime &date,
309
309
                                        bool dateOnly = false,
310
310
                                        bool shortfmt = true,
311
311
                                        const KDateTime::Spec &spec = KDateTime::Spec() );
316
316
    @param incidence is a pointer to the Incidence.
317
317
    @since 4.4
318
318
  */
319
 
  KCAL_EXPORT_DEPRECATED QString resourceString( Calendar *calendar, Incidence *incidence );
 
319
  KCAL_DEPRECATED_EXPORT QString resourceString( Calendar *calendar, Incidence *incidence );
320
320
 
321
321
  /**
322
322
    Returns a duration string computed for the specified Incidence.
324
324
    @param incidence is a pointer to the Incidence.
325
325
    @since 4.5
326
326
  */
327
 
  KCAL_EXPORT_DEPRECATED QString durationString( Incidence *incidence );
 
327
  KCAL_DEPRECATED_EXPORT QString durationString( Incidence *incidence );
328
328
 
329
329
  class EventViewerVisitor;
330
330
  class ScheduleMessageVisitor;