2009-01-31 07:53:36 +01:00
|
|
|
/*
|
2010-02-28 01:08:10 +01:00
|
|
|
* This file is a part of Winix
|
2009-01-31 07:53:36 +01:00
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2010-02-28 22:33:06 +01:00
|
|
|
* Copyright (c) 2008-2010, Tomasz Sowa
|
2009-01-31 07:53:36 +01:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2009-11-13 21:40:11 +01:00
|
|
|
|
|
|
|
#ifndef headerfilecmslupluginmsg
|
|
|
|
#define headerfilecmslupluginmsg
|
|
|
|
|
2010-07-27 22:41:56 +02:00
|
|
|
// here you can add your own EZC functions ([function])
|
|
|
|
// PluginInfo.p1 is a pointer to Ezc::Functions object
|
2010-02-11 21:56:52 +01:00
|
|
|
#define WINIX_TEMPLATES_CREATEFUNCTIONS 999
|
2010-07-27 22:41:56 +02:00
|
|
|
|
2010-12-06 01:25:46 +01:00
|
|
|
// here you can add your own EZC functions to notify system
|
|
|
|
// warning: this functions will be called from an other thread
|
|
|
|
// so you should use synchro->Lock() and synchro->Unlock()
|
|
|
|
// when attempting to winix objects
|
|
|
|
// PluginInfo.p1 is a pointer to Ezc::Functions object
|
|
|
|
// which is defined as:
|
|
|
|
// Ezc::Functions<NotifyStream> ezc_functions;
|
|
|
|
// and Notify Stream is:
|
|
|
|
// typedef TextStream<std::wstring> NotifyStream;
|
|
|
|
#define WINIX_NOTIFY_TEMPLATES_CREATEFUNCTIONS 998
|
|
|
|
|
2010-10-24 01:51:44 +02:00
|
|
|
// winix function and parameters have been parsed
|
|
|
|
// the request.status is OK
|
|
|
|
// (the winix function was not called yet)
|
|
|
|
#define WINIX_PREPARE_REQUEST 2000
|
|
|
|
|
|
|
|
// post and get functions have done their jobs
|
|
|
|
// now you can act
|
|
|
|
// this is called only if the request.status is OK
|
|
|
|
#define WINIX_PROCESS_REQUEST 2001
|
|
|
|
|
|
|
|
// prepere your content for displaying
|
|
|
|
// this is called after WINIX_PROCESS_REQUEST
|
|
|
|
// and when there is not a redirect
|
|
|
|
// request.status is not checked here
|
|
|
|
#define WINIX_CONTENT_MAKE 2002
|
2009-11-13 21:40:11 +01:00
|
|
|
|
2010-05-04 23:58:22 +02:00
|
|
|
// here you can attach your own session data (based on PluginDataBase class)
|
|
|
|
// call request.session->plugin_data.Assign(pointer)
|
|
|
|
#define WINIX_SESSION_CREATED 3000
|
|
|
|
|
|
|
|
// here you should remove your session data
|
|
|
|
#define WINIX_SESSION_REMOVE 3001
|
|
|
|
|
|
|
|
// when a session is changed (you can save a pointer to your data here)
|
|
|
|
#define WINIX_SESSION_CHANGED 3002
|
2009-11-13 21:40:11 +01:00
|
|
|
|
2010-07-27 22:41:56 +02:00
|
|
|
// the winix is closing
|
2010-11-23 22:52:25 +01:00
|
|
|
// the is not any session available (request->session is null)
|
2010-07-27 22:41:56 +02:00
|
|
|
#define WINIX_CLOSE 3004
|
2009-11-13 21:40:11 +01:00
|
|
|
|
2010-07-27 22:41:56 +02:00
|
|
|
// item was removed (rm function)
|
|
|
|
// PluginInfo::l1 is the file (item) id
|
|
|
|
#define WINIX_FILE_REMOVED 3005
|
2009-11-13 21:40:11 +01:00
|
|
|
|
2010-07-27 22:41:56 +02:00
|
|
|
// directory was removed (rm function)
|
|
|
|
// PluginInfo::l1 is the dir id
|
|
|
|
#define WINIX_DIR_REMOVED 3006
|
2009-11-13 21:40:11 +01:00
|
|
|
|
2010-07-27 22:41:56 +02:00
|
|
|
// preparing to remove a directory (rm function)
|
|
|
|
// PluginInfo::l1 is the dir id
|
|
|
|
#define WINIX_DIR_PREPARE_TO_REMOVE 3007
|
2009-11-13 21:40:11 +01:00
|
|
|
|
2010-08-14 18:23:18 +02:00
|
|
|
// winix is initialized,
|
|
|
|
// now you can initialize your plugin
|
|
|
|
#define WINIX_PLUGIN_INIT 3008
|
|
|
|
|
2010-09-13 01:33:27 +02:00
|
|
|
// here you can add your own mount point, file systems, mount parameters
|
|
|
|
// for adding a new mount type call: system->mounts.AddMountType("new_mount_name")
|
|
|
|
#define WINIX_ADD_MOUNTS 3009
|
2009-01-26 21:49:28 +01:00
|
|
|
|
2010-09-29 23:24:34 +02:00
|
|
|
// add plugin functions here
|
|
|
|
#define WINIX_CREATE_FUNCTIONS 3010
|
|
|
|
|
|
|
|
// choose a default function
|
|
|
|
// if you do not select it then it will be choosen by winix
|
|
|
|
#define WINIX_SELECT_DEFAULT_FUNCTION 3011
|
|
|
|
|
2010-10-11 22:42:49 +02:00
|
|
|
// /etc/fstab has been changed
|
|
|
|
// now we have new mount points
|
|
|
|
#define WINIX_FSTAB_CHANGED 3012
|
|
|
|
|
2010-12-06 01:25:46 +01:00
|
|
|
// here you add your own template to notification system
|
|
|
|
// call system->notify.AddTemplate() method
|
|
|
|
// with a template file name
|
|
|
|
#define WINIX_NOTIFY_ADD_TEMPLATE 3013
|
2010-10-11 22:42:49 +02:00
|
|
|
|
2009-01-26 21:49:28 +01:00
|
|
|
|
|
|
|
#endif
|