Adobe.com
Contents Suites Classes Class Index Member Index

AINotifier.h

Go to the documentation of this file.
00001 #ifndef __AINotifier__
00002 #define __AINotifier__
00003 
00004 /*
00005  *        Name: AINotifier.h
00006  *   $Revision: 5 $
00007  *      Author:
00008  *        Date:
00009  *     Purpose: Adobe Illustrator Notifier Suite.
00010  *
00011  * ADOBE SYSTEMS INCORPORATED
00012  * Copyright 1986-2007 Adobe Systems Incorporated.
00013  * All rights reserved.
00014  *
00015  * NOTICE:  Adobe permits you to use, modify, and distribute this file 
00016  * in accordance with the terms of the Adobe license agreement 
00017  * accompanying it. If you have received this file from a source other 
00018  * than Adobe, then your use, modification, or distribution of it 
00019  * requires the prior written permission of Adobe.
00020  *
00021  */
00022 
00023 
00024 /*******************************************************************************
00025  **
00026  **     Imports
00027  **
00028  **/
00029 
00030 #ifndef __AITypes__
00031 #include "AITypes.h"
00032 #endif
00033 
00034 #ifndef __AIPlugin__
00035 #include "AIPlugin.h"
00036 #endif
00037 
00038 
00039 #include "AIHeaderBegin.h"
00040 
00044 /*******************************************************************************
00045  **
00046  ** Constants
00047  **
00048  **/
00049 
00050 #define kAINotifierSuite                "AI Notifier Suite"
00051 #define kAINotifierSuiteVersion         AIAPI_VERSION(4)
00052 #define kAINotifierVersion                      kAINotifierSuiteVersion
00053 
00056 #define kCallerAINotify                 "AI Notifier"
00057 
00059 #define kSelectorAINotify               "AI Notify"
00060 
00061 
00062 /*******************************************************************************
00063  **
00064  ** Types
00065  **
00066  **/
00067 
00069 typedef struct _t_AINotifierOpaque *AINotifierHandle;
00070 
00072 struct AINotifierMessage {
00074         SPMessageData d;
00078         AINotifierHandle notifier;
00083         const char *type;
00087         void *notifyData;
00088 };
00089 
00090 
00091 /*******************************************************************************
00092  **
00093  **     Suite Record
00094  **
00095  **/
00096 
00124 struct AINotifierSuite {
00125 
00135         AIAPI AIErr (*AddNotifier) ( SPPluginRef self, const char *name, const char *type,
00136                                 AINotifierHandle *notifier );
00137 
00142         AIAPI AIErr (*GetNotifierName) ( AINotifierHandle notifier, const char **name );
00143 
00148         AIAPI AIErr (*GetNotifierType) ( AINotifierHandle notifier, const char **type );
00149 
00154         AIAPI AIErr (*GetNotifierActive) ( AINotifierHandle notifier, AIBoolean *active );
00155 
00161         AIAPI AIErr (*SetNotifierActive) ( AINotifierHandle notifier, AIBoolean active );
00162 
00168         AIAPI AIErr (*GetNotifierPlugin) ( AINotifierHandle notifier, SPPluginRef *plugin );
00169 
00174         AIAPI AIErr (*CountNotifiers) ( ai::int32 *count );
00175 
00181         AIAPI AIErr (*GetNthNotifier) ( ai::int32 n, AINotifierHandle *notifier );
00182 
00189         AIAPI AIErr (*Notify) ( const char *type, void *notifyData );
00190 
00191 };
00192 
00193 
00194 #include "AIHeaderEnd.h"
00195 
00196 #endif


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2016 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks