libs-back/Source/win32/MSUserNotifications/MSUserNotification.h
Paul Landers 71864f8dea change calls from getWindowLong to getWindowLongPtr for 64bit compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@40146 72102866-910b-0410-8b05-ffd578937521
2016-10-12 16:30:03 +00:00

75 lines
2.3 KiB
Objective-C

/* Interface for DKUserNotification for GNUstep
Copyright (C) 2014 Free Software Foundation, Inc.
Written by: Marcus Mueller <znek@mulle-kybernetik.com>
Date: 2014
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
// NOTE: for the time being, NSUserNotificationCenter needs this feature.
// Whenever this restriction is lifted, we can get rid of it here as well.
#if __has_feature(objc_default_synthesize_properties)
#include <GNUstepBase/GSConfig.h>
#include <windows.h>
// C++ header includes...
#include <string>
#include "MSUserNotificationAPI.h"
#import <GNUstepBase/GSVersionMacros.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_8,GS_API_LATEST)
#include <Foundation/NSUUID.h>
#import <Foundation/NSUserNotification.h>
#if defined(__cplusplus)
extern "C" {
#endif
// DLL API Function prototypes...
typedef BOOL __cdecl (*SendNotificationFunctionPtr)(HWND, HICON, SEND_NOTE_INFO_PTR);
typedef BOOL __cdecl (*RemoveNotificationFunctionPtr)(HICON, REMOVE_NOTE_INFO_PTR);
typedef BOOL __cdecl (*ActivationCallbackFunctionPtr)(void);
typedef BOOL __cdecl (*SetActivationCallbackPtr)(ActivationCallbackFunctionPtr);
@class NSConnection;
@class NSArray;
@class NSMutableDictionary;
@protocol Notifications;
@interface MSUserNotificationCenter : NSUserNotificationCenter
{
HICON appIcon;
NSString *appIconPath;
NSMutableDictionary *imageToIcon;
NSArray *caps;
NSUInteger uniqueID;
NSMutableDictionary *idToNotes;
}
@end
#if defined(__cplusplus)
}
#endif
#endif /* OS_API_VERSION(MAC_OS_X_VERSION_10_8,GS_API_LATEST) */
#endif /* __has_feature(objc_default_synthesize_properties) */