summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-05-25 07:22:12 +0000
committerTino Rachui <tra@openoffice.org>2001-05-25 07:22:12 +0000
commit37c1d051d5ea49ef1f328c9a9db8b8ee0daa623a (patch)
treec51d535d1491274690f3a2a189375a2397d7e90e /shell
parentf106e69bf618090aadccf40fc570cb9e724dc468 (diff)
*** empty log message ***
Diffstat (limited to 'shell')
-rw-r--r--shell/source/win32/workbench/TestSmplMail.cxx27
-rw-r--r--shell/source/win32/workbench/makefile.mk17
2 files changed, 37 insertions, 7 deletions
diff --git a/shell/source/win32/workbench/TestSmplMail.cxx b/shell/source/win32/workbench/TestSmplMail.cxx
index 59bda0d02bd7..18a263a07469 100644
--- a/shell/source/win32/workbench/TestSmplMail.cxx
+++ b/shell/source/win32/workbench/TestSmplMail.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TestSmplMail.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: tra $ $Date: 2001-05-14 08:19:15 $
+ * last change: $Author: tra $ $Date: 2001-05-25 08:22:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -99,6 +99,8 @@
#include <stdio.h>
#include <windows.h>
+#include <osl/file.hxx>
+
//--------------------------------------------------------------
// namesapces
//--------------------------------------------------------------
@@ -172,20 +174,35 @@ int SAL_CALL main(int nArgc, char* Argv[], char* Env[] )
if ( xSmplMailMsg.is( ) )
{
xSmplMailMsg->setRecipient( OUString::createFromAscii("tino.rachui@germany.sun.com") );
- xSmplMailMsg->setOriginator( OUString::createFromAscii( "hennes.rohling@germany.sun.com" ) );
+ xSmplMailMsg->setOriginator( OUString::createFromAscii( "tino.rachui@germany.sun.com" ) );
Sequence< OUString > ccRecips( 1 );
- ccRecips[0] = OUString::createFromAscii( "hennes.rohling@germany.sun.com" );
+ ccRecips[0] = OUString::createFromAscii( "tino.rachui@germany.sun.com" );
xSmplMailMsg->setCcRecipient( ccRecips );
Sequence< OUString > bccRecips( 1 );
- bccRecips[0] = OUString::createFromAscii( "hennes.rohling@germany.sun.com" );
+ bccRecips[0] = OUString::createFromAscii( "tino.rachui@germany.sun.com" );
xSmplMailMsg->setBccRecipient( bccRecips );
xSmplMailMsg->setSubject( OUString::createFromAscii( "Mapi Test" ) );
+ Sequence< OUString > attachements( 2 );
+
+ OUString aFile = OUString::createFromAscii( "D:\\Projects\\gsl\\shell\\wntmsci7\\bin\\testprx.exe" );
+ OUString aFileURL;
+
+ osl::FileBase::getFileURLFromSystemPath( aFile, aFileURL );
+ attachements[0] = aFileURL;
+
+ aFile = OUString::createFromAscii( "D:\\Projects\\gsl\\shell\\wntmsci7\\bin\\testsyssh.exe" );
+ osl::FileBase::getFileURLFromSystemPath( aFile, aFileURL );
+
+ attachements[1] = aFile;
+
+ xSmplMailMsg->setAttachement( attachements );
+
xSmplMailClient->sendSimpleMailMessage( xSmplMailMsg, 0 );
}
}
diff --git a/shell/source/win32/workbench/makefile.mk b/shell/source/win32/workbench/makefile.mk
index e12692e34d8a..e36e157945ec 100644
--- a/shell/source/win32/workbench/makefile.mk
+++ b/shell/source/win32/workbench/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.2 $
+# $Revision: 1.3 $
#
-# last change: $Author: tra $ $Date: 2001-05-14 08:19:24 $
+# last change: $Author: tra $ $Date: 2001-05-25 08:22:12 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -65,6 +65,7 @@ PRJ=..$/..$/..
PRJNAME= sysshell
TARGET= testsyssh
TARGET1= testsmplmail
+TARGET2= testprx
LIBTARGET= NO
TARGETTYPE= CUI
@@ -82,6 +83,7 @@ CFLAGS+=/GX
OBJFILES1=$(OBJ)$/TestSysShExec.obj
OBJFILES2=$(OBJ)$/TestSmplMail.obj
+OBJFILES3=$(OBJ)$/TestProxySet.obj
OBJFILES=$(OBJFILES1)\
$(OBJFILES2)
@@ -109,6 +111,17 @@ APP2STDLIBS+= $(CPPULIB) \
APP2DEF= $(MISC)$/$(APP2TARGET).def
+# --- TestProxy ---
+
+APP3TARGET=$(TARGET2)
+APP3OBJS=$(OBJFILES3)
+
+APP3STDLIBS+= $(CPPULIB) \
+ $(CPPUHELPERLIB) \
+ $(SALLIB)
+
+APP3DEF= $(MISC)$/$(APP3TARGET).def
+
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk