guicanceljob.c
来自「这个是boot gui的程序」· C语言 代码 · 共 59 行
C
59 行
/*
* Start of Zoran Standard Header
* Copyright (c) 2005, 2006 Zoran Corporation
*
*
* All rights reserved. Proprietary and confidential.
*
* DESCRIPTION for guicanceljob.c
* Job-cancel action routine
*
* NEW HISTORY COMMENT (description must be followed by a blank line)
* <Enter change description here>
* ===== HISTORY of changes in //depot/imgeng/sw/se_gw/gui/guicanceljob.c
*
* 24/Jan/06 #3 dstrauss Fixed file description comment.
* 13/Dec/05 #2 dstrauss Cancel photoprint jobs, too
* 9/Dec/05 #1 dstrauss Created.
*
* End of Zoran Standard Header
*/
#include "standard.h"
#include "job.h"
#include "jobcopy.h"
#include "ppjm.h"
#include "guiactions.h"
extern void cancelPictBridgePrint(void);
/* Cancel any outstanding job(s). Return 1 if we actually
* canceled (at least) one, else return 0.
*/
int GUIActionCancelJob(void)
{
int retval;
JOB* pJob;
retval = 0; /* assume failure */
if (GetNumberOfActiveJobs() != 0 ) {
if ((pJob=GetActiveJobOfType(JOB_COPY)) != NULL ) {
CopyJobAbort(pJob);
retval = 1;
}
if ((pJob=GetActiveJobOfType(JOB_PHOTOPRINT)) != NULL ) {
GUIActionStopPhoto();
retval = 1;
}
if ((pJob=GetActiveJobOfType(JOB_PICTBRIDGE)) != NULL ) {
cancelPictBridgePrint();
retval = 1;
}
}
return (retval);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?