зеркало из https://github.com/mozilla/pjs.git
Initial checkin
This commit is contained in:
Родитель
1387e50ce7
Коммит
895fe73248
|
@ -1,43 +1,25 @@
|
|||
<html>
|
||||
<head>
|
||||
<title> SilentDownload Test Page</title>
|
||||
<title> AppProcesses Test Page</title>
|
||||
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!--
|
||||
var task = SilentDownloadManager.Find("Silent Download Task 1");
|
||||
var appCore = AppProcessesManager.Find("MailAppCore");
|
||||
|
||||
if (task==null)
|
||||
if (appCore==null)
|
||||
{
|
||||
alert("\nSD: Task Not Found - New Task");
|
||||
dump("\nAppProcess: Process Not Found - New Process");
|
||||
|
||||
|
||||
task = new SilentDownloadTask();
|
||||
|
||||
task.Init( "Silent Download Task 1",
|
||||
"http://grok/u/dougt/silentdl/tests/sol.exe",
|
||||
"http://warp/u/dougt/silentdl/tests/sol.html");
|
||||
|
||||
appCore = new MailProcess();
|
||||
if (appCore == null) {
|
||||
dump("\nnAppProcess: Process was null");
|
||||
} else {
|
||||
appCore.Init("MailAppCore");
|
||||
dump("\nnAppProcess: Process was created");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
switch (task.state)
|
||||
{
|
||||
case SilentDownloadTask.SDL_NOT_INITED:
|
||||
case SilentDownloadTask.SDL_NOT_ADDED:
|
||||
case SilentDownloadTask.SDL_STARTED:
|
||||
case SilentDownloadTask.SDL_SUSPENDED:
|
||||
case SilentDownloadTask.SDL_DOWNLOADING_NOW:
|
||||
case SilentDownloadTask.SDL_ERROR:
|
||||
break;
|
||||
|
||||
case SilentDownloadTask.SDL_COMPLETED:
|
||||
alert("\nSD: Task Complete");
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// -->
|
||||
</SCRIPT>
|
||||
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
#
|
||||
|
||||
DEPTH = ..
|
||||
topsrcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
srcdir = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = silentdl
|
||||
LIBRARY_NAME = silentdl
|
||||
|
||||
EXPORTS = nsSilentDownload.h nsIDOMSilentDownloadTask.h nsIDOMSilentDownload.h
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
interface BaseAppCore
|
||||
{
|
||||
/* IID: { 0xbe5c13bd, 0xba9f, 0x11d2, \
|
||||
{0x96, 0xc4, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56}} */
|
||||
|
||||
readonly attribute wstring id;
|
||||
|
||||
void BaseAppCore();
|
||||
void Init(in wstring id);
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
interface BrowserAppCore : BaseAppCore
|
||||
{
|
||||
/* IID: { 0xb0ffb697, 0xbab4, 0x11d2, \
|
||||
{0x96, 0xc4, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56}} */
|
||||
|
||||
void BrowserAppCore();
|
||||
|
||||
void back();
|
||||
void forward();
|
||||
void loadUrl(in wstring url);
|
||||
|
||||
void setToolbarWindow(in Window win);
|
||||
void setContentWindow(in Window win);
|
||||
|
||||
void disableCallback(in wstring script);
|
||||
void enableCallback(in wstring script);
|
||||
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
interface ToolbarCore : BaseAppCore
|
||||
{
|
||||
/* IID: { 0xbf4ae23e, 0xba9b, 0x11d2, \
|
||||
{0x96, 0xc4, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56}} */
|
||||
|
||||
void ToolbarCore();
|
||||
|
||||
void SetWindow(in Window win);
|
||||
void SetStatus(in wstring msg);
|
||||
|
||||
};
|
||||
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
#!gmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
|
||||
DEPTH=..\..
|
||||
IGNORE_MANIFEST=1
|
||||
|
||||
MAKE_OBJ_TYPE = DLL
|
||||
MODULE=appcores
|
||||
|
||||
DLL=.\$(OBJDIR)\$(MODULE).dll
|
||||
|
||||
DEFINES=-D_IMPL_NS_DOM -DWIN32_LEAN_AND_MEAN
|
||||
|
||||
LCFLAGS = \
|
||||
$(LCFLAGS) \
|
||||
$(DEFINES) \
|
||||
$(NULL)
|
||||
|
||||
LINCS= \
|
||||
-I$(XPDIST)\public\js \
|
||||
-I$(XPDIST)\public\netlib \
|
||||
-I$(XPDIST)\public\network \
|
||||
-I$(XPDIST)\public\dom \
|
||||
-I$(XPDIST)\public\xpcom \
|
||||
-I$(XPDIST)\public\util \
|
||||
-I$(XPDIST)\public\nspr2 \
|
||||
-I$(XPDIST)\public\pref \
|
||||
-I$(XPDIST)\public\raptor \
|
||||
$(NULL)
|
||||
|
||||
LLIBS = \
|
||||
$(DIST)\lib\netlib.lib \
|
||||
$(DIST)\lib\xpcom32.lib \
|
||||
$(DIST)\lib\xppref32.lib \
|
||||
$(DIST)\lib\xplib.lib \
|
||||
$(DIST)\lib\js3250.lib \
|
||||
$(DIST)\lib\jsdombase_s.lib \
|
||||
$(DIST)\lib\raptorbase.lib \
|
||||
$(DIST)\lib\raptorgfxwin.lib \
|
||||
$(LIBNSPR) \
|
||||
$(DIST)\lib\libplc21.lib \
|
||||
$(NULL)
|
||||
|
||||
OBJS = \
|
||||
.\$(OBJDIR)\nsBaseAppCore.obj \
|
||||
.\$(OBJDIR)\nsMailCore.obj \
|
||||
.\$(OBJDIR)\nsAppCoresNameSet.obj \
|
||||
.\$(OBJDIR)\nsToolbarCore.obj \
|
||||
.\$(OBJDIR)\nsBrowserAppCore.obj \
|
||||
.\$(OBJDIR)\nsMailCoreFactory.obj \
|
||||
.\$(OBJDIR)\nsToolbarCoreFactory.obj \
|
||||
.\$(OBJDIR)\nsBrowserAppCoreFactory.obj \
|
||||
.\$(OBJDIR)\nsAppCoresManager.obj \
|
||||
.\$(OBJDIR)\nsAppCoresManagerFactory.obj \
|
||||
.\$(OBJDIR)\nsJSBaseAppCore.obj \
|
||||
.\$(OBJDIR)\nsJSAppCores.obj \
|
||||
.\$(OBJDIR)\nsJSMailCore.obj \
|
||||
.\$(OBJDIR)\nsJSToolbarCore.obj \
|
||||
.\$(OBJDIR)\nsJSBrowserAppCore.obj \
|
||||
.\$(OBJDIR)\nsAppCores.obj \
|
||||
$(NULL)
|
||||
|
||||
|
||||
EXPORTS= \
|
||||
nsIDOMAppCores.h \
|
||||
nsIDOMBaseAppCore.h \
|
||||
nsIDOMMailCore.h \
|
||||
nsIDOMToolbarCore.h \
|
||||
nsIDOMBrowserApprCore.h \
|
||||
nsAppCoresCIDs.h
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
install:: $(DLL)
|
||||
$(MAKE_INSTALL) .\$(OBJDIR)\$(MODULE).dll $(DIST)\bin
|
||||
$(MAKE_INSTALL) .\$(OBJDIR)\$(MODULE).lib $(DIST)\lib
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\lib\$(MODULE).lib
|
||||
rm -f $(DIST)\bin\$(MODULE).dll
|
Загрузка…
Ссылка в новой задаче