2011-07-21 17:05:17 +02:00
|
|
|
/* MAPIStoreAppointmentWrapper.h - this file is part of SOGo
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 Inverse inc
|
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MAPISTORECALENDARWRAPPER_H
|
|
|
|
#define MAPISTORECALENDARWRAPPER_H
|
|
|
|
|
2011-10-12 01:38:37 +02:00
|
|
|
#import <NGCards/iCalPerson.h>
|
2011-10-03 22:55:02 +02:00
|
|
|
#import <Appointments/iCalEntityObject+SOGo.h>
|
|
|
|
|
2012-07-19 22:26:33 +02:00
|
|
|
#import "MAPIStoreObjectProxy.h"
|
|
|
|
|
2011-07-21 17:05:17 +02:00
|
|
|
@class NSTimeZone;
|
|
|
|
|
2011-10-11 21:46:02 +02:00
|
|
|
@class iCalAlarm;
|
2011-07-21 17:05:17 +02:00
|
|
|
@class iCalCalendar;
|
|
|
|
@class iCalEvent;
|
|
|
|
|
2011-10-03 22:55:02 +02:00
|
|
|
@class SOGoUser;
|
|
|
|
|
2012-07-19 22:26:33 +02:00
|
|
|
@interface MAPIStoreAppointmentWrapper : MAPIStoreObjectProxy
|
2011-07-21 17:05:17 +02:00
|
|
|
{
|
2011-11-17 17:15:38 +01:00
|
|
|
struct mapistore_connection_info *connInfo;
|
2011-07-21 17:05:17 +02:00
|
|
|
iCalCalendar *calendar;
|
|
|
|
iCalEvent *event;
|
|
|
|
NSTimeZone *timeZone;
|
2011-10-12 22:00:46 +02:00
|
|
|
SOGoUser *user;
|
|
|
|
NSString *senderEmail;
|
2011-08-06 01:38:18 +02:00
|
|
|
NSData *globalObjectId;
|
|
|
|
NSData *cleanGlobalObjectId;
|
2011-10-11 21:46:02 +02:00
|
|
|
BOOL alarmSet;
|
|
|
|
iCalAlarm *alarm;
|
2011-10-12 01:38:37 +02:00
|
|
|
BOOL itipSetup;
|
|
|
|
NSString *method;
|
|
|
|
iCalPersonPartStat partstat;
|
2011-07-21 17:05:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (id) wrapperWithICalEvent: (iCalEvent *) newEvent
|
2011-10-03 22:55:02 +02:00
|
|
|
andUser: (SOGoUser *) newUser
|
2011-10-12 22:00:46 +02:00
|
|
|
andSenderEmail: (NSString *) newSenderEmail
|
2011-11-17 17:15:38 +01:00
|
|
|
inTimeZone: (NSTimeZone *) newTimeZone
|
|
|
|
withConnectionInfo: (struct mapistore_connection_info *) newConnInfo;
|
2011-07-21 17:05:17 +02:00
|
|
|
- (id) initWithICalEvent: (iCalEvent *) newEvent
|
2011-10-03 22:55:02 +02:00
|
|
|
andUser: (SOGoUser *) newUser
|
2011-10-12 22:00:46 +02:00
|
|
|
andSenderEmail: (NSString *) newSenderEmail
|
2011-11-17 17:15:38 +01:00
|
|
|
inTimeZone: (NSTimeZone *) newTimeZone
|
|
|
|
withConnectionInfo: (struct mapistore_connection_info *) newConnInfo;
|
2011-07-21 17:05:17 +02:00
|
|
|
|
|
|
|
/* getters */
|
2011-09-30 22:01:50 +02:00
|
|
|
- (void) fillMessageData: (struct mapistore_message *) dataPtr
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagSenderEmailAddress: (void **) data
|
2011-10-03 22:55:02 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagSenderAddressType: (void **) data
|
2011-10-03 22:55:02 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagSenderName: (void **) data
|
2011-10-03 22:55:02 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagSenderEntryId: (void **) data
|
2011-10-03 22:55:02 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagReceivedByAddressType: (void **) data
|
2011-10-03 22:55:02 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagReceivedByEmailAddress: (void **) data
|
2011-10-03 22:55:02 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagReceivedByName: (void **) data
|
2011-10-03 22:55:02 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagReceivedByEntryId: (void **) data
|
2011-10-03 22:55:02 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagIconIndex: (void **) data
|
2011-07-21 17:05:17 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagOwnerAppointmentId: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2011-08-08 21:01:24 +02:00
|
|
|
- (int) getPidLidMeetingType: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagMessageClass: (void **) data
|
2011-07-21 17:05:17 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagStartDate: (void **) data
|
2011-07-21 17:05:17 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-20 19:50:09 +01:00
|
|
|
- (int) getPidLidAppointmentSequence: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2011-08-08 21:01:24 +02:00
|
|
|
- (int) getPidLidAppointmentStateFlags: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2011-10-03 22:55:02 +02:00
|
|
|
- (int) getPidLidResponseStatus: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
|
2011-07-21 17:05:17 +02:00
|
|
|
- (int) getPidLidAppointmentStartWhole: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidCommonStart: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagEndDate: (void **) data
|
2011-07-21 17:05:17 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidAppointmentEndWhole: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidCommonEnd: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidAppointmentDuration: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidAppointmentSubType: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidBusyStatus: (void **) data // TODO
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidIndentedBusyStatus: (void **) data // TODO
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-07-20 16:13:56 +02:00
|
|
|
- (int) getPidTagNormalizedSubject: (void **) data // SUMMARY
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2011-07-21 17:05:17 +02:00
|
|
|
- (int) getPidLidLocation: (void **) data // LOCATION
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidPrivate: (void **) data // private (bool), should depend on CLASS and permissions
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagSensitivity: (void **) data // not implemented, depends on CLASS
|
2011-07-21 17:05:17 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagImportance: (void **) data
|
2011-07-21 17:05:17 +02:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2012-03-02 21:44:24 +01:00
|
|
|
- (int) getPidTagBody: (void **) data
|
2011-11-09 21:47:08 +01:00
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2011-07-21 17:05:17 +02:00
|
|
|
- (int) getPidLidIsRecurring: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidRecurring: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidAppointmentRecur: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidGlobalObjectId: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidCleanGlobalObjectId: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidServerProcessed: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2011-10-03 22:55:02 +02:00
|
|
|
- (int) getPidLidServerProcessingActions: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidAppointmentReplyTime: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2011-07-21 17:05:17 +02:00
|
|
|
|
2011-10-11 21:46:02 +02:00
|
|
|
/* reminders */
|
|
|
|
- (int) getPidLidReminderSet: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidReminderDelta: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidReminderTime: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidReminderSignalTime: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidReminderOverride: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidReminderType: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidReminderPlaySound: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
- (int) getPidLidReminderFileParameter: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
|
2011-07-21 17:05:17 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* MAPISTORECALENDARWRAPPER_H */
|