comparison os2/dw.c @ 2068:ade83a05a7d8

Added notification stubs for Windows and OS/2. Windows code is in progress, but having some build system integration issues. So I wanted to commit the stubs at least to ensure things still build in the meantime.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 14 May 2020 23:27:56 +0000
parents 7f2fb0c602f0
children b4b49d29b940
comparison
equal deleted inserted replaced
2067:3ccd0da07514 2068:ade83a05a7d8
1 /* 1 /*
2 * Dynamic Windows: 2 * Dynamic Windows:
3 * A GTK like implementation of the PM GUI 3 * A GTK like implementation of the PM GUI
4 * 4 *
5 * (C) 2000-2019 Brian Smith <brian@dbsoft.org> 5 * (C) 2000-2020 Brian Smith <brian@dbsoft.org>
6 * (C) 2003-2011 Mark Hessling <mark@rexx.org> 6 * (C) 2003-2011 Mark Hessling <mark@rexx.org>
7 * (C) 2000 Achim Hasenmueller <achimha@innotek.de> 7 * (C) 2000 Achim Hasenmueller <achimha@innotek.de>
8 * (C) 2000 Peter Nielsen <peter@pmview.com> 8 * (C) 2000 Peter Nielsen <peter@pmview.com>
9 * (C) 2007 Alex Taylor (some code borrowed from clipuni) 9 * (C) 2007 Alex Taylor (some code borrowed from clipuni)
10 * (C) 1998 Sergey I. Yevtushenko (some code borrowed from cell toolkit) 10 * (C) 1998 Sergey I. Yevtushenko (some code borrowed from cell toolkit)
12391 WinCloseClipbrd(dwhab); /* Close clipboard */ 12391 WinCloseClipbrd(dwhab); /* Close clipboard */
12392 return; 12392 return;
12393 } 12393 }
12394 12394
12395 /* 12395 /*
12396 * Creates a new system notification if possible.
12397 * Parameters:
12398 * title: The short title of the notification.
12399 * pixmap: Handle to an image to display or NULL if none.
12400 * description: A longer description of the notification,
12401 * or NULL if none is necessary.
12402 * Returns:
12403 * A handle to the notification which can be used to attach a "clicked" event if desired,
12404 * or NULL if it fails or notifications are not supported by the system.
12405 * Remarks:
12406 * This will create a system notification that will show in the notifaction panel
12407 * on supported systems, which may be clicked to perform another task.
12408 */
12409 HWND dw_notification_new(const char *title, HPIXMAP pixmap, const char *description, ...)
12410 {
12411 return NULL;
12412 }
12413
12414 /*
12415 * Sends a notification created by dw_notification_new() after attaching signal handler.
12416 * Parameters:
12417 * notification: The handle to the notification returned by dw_notification_new().
12418 * Returns:
12419 * DW_ERROR_NONE on success, DW_ERROR_UNKNOWN on error or not supported.
12420 */
12421 int dw_notification_send(HWND notification)
12422 {
12423 return DW_ERROR_UNKNOWN;
12424 }
12425
12426 /*
12396 * Returns some information about the current operating environment. 12427 * Returns some information about the current operating environment.
12397 * Parameters: 12428 * Parameters:
12398 * env: Pointer to a DWEnv struct. 12429 * env: Pointer to a DWEnv struct.
12399 */ 12430 */
12400 void API dw_environment_query(DWEnv *env) 12431 void API dw_environment_query(DWEnv *env)
13274 { 13305 {
13275 return _dw_exec_dir; 13306 return _dw_exec_dir;
13276 } 13307 }
13277 13308
13278 /* 13309 /*
13310 * Sets the application ID used by this Dynamic Windows application instance.
13311 * Parameters:
13312 * appid: A string typically in the form: com.company.division.application
13313 * Returns:
13314 * DW_ERROR_NONE after successfully setting the application ID.
13315 * DW_ERROR_UNKNOWN if unsupported on this system.
13316 * DW_ERROR_GENERAL if the application ID is not allowed.
13317 * Remarks:
13318 * This must be called before dw_init(). If dw_init() is called first
13319 * it will create a unique ID in the form: org.dbsoft.dwindows.application
13320 * or if the application name cannot be detected: org.dbsoft.dwindows.pid.#
13321 */
13322 int dw_app_id_set(const char *appid)
13323 {
13324 return DW_ERROR_UNKNOWN;
13325 }
13326
13327 /*
13279 * Call a function from the window (widget)'s context. 13328 * Call a function from the window (widget)'s context.
13280 * Parameters: 13329 * Parameters:
13281 * handle: Window handle of the widget. 13330 * handle: Window handle of the widget.
13282 * function: Function pointer to be called. 13331 * function: Function pointer to be called.
13283 * data: Pointer to the data to be passed to the function. 13332 * data: Pointer to the data to be passed to the function.