From: Anneli <an...@us...> - 2005-03-07 11:14:10
|
Update of /cvsroot/redpos/RedPOS/src/org/redpos/client/contract In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29708/src/org/redpos/client/contract Modified Files: POSEngineConstants.java POSEngineUtility.java Log Message: Added functionality for short commands when selecting payment Index: POSEngineUtility.java =================================================================== RCS file: /cvsroot/redpos/RedPOS/src/org/redpos/client/contract/POSEngineUtility.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** POSEngineUtility.java 17 Jan 2005 10:23:22 -0000 1.3 --- POSEngineUtility.java 7 Mar 2005 11:13:58 -0000 1.4 *************** *** 515,517 **** --- 515,544 ---- } + /** + * Starts selected payment + * + * @param payment + * @throws JMException + */ + public void startSelectedPayment(final PaymentInfo payment) throws JMException + { + try + { + ObjectName pay = new ObjectName("RedPOS.client:service=POSEngine"); + + Object[] params = {payment}; + String[] signature = {"org.redpos.client.payment.contract.PaymentInfo"}; + + getServer().invoke(pay, "startSelectedPayment", params, + signature); + } + catch(JMException e) + { + throw e; + } + + + + } + } \ No newline at end of file Index: POSEngineConstants.java =================================================================== RCS file: /cvsroot/redpos/RedPOS/src/org/redpos/client/contract/POSEngineConstants.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** POSEngineConstants.java 23 Nov 2004 16:02:44 -0000 1.1 --- POSEngineConstants.java 7 Mar 2005 11:13:58 -0000 1.2 *************** *** 46,49 **** public static final String NOTIFICATION_POS_PAYMENT_COMPLETE = "redpos.engine.paymentComplete"; ! } \ No newline at end of file --- 46,51 ---- public static final String NOTIFICATION_POS_PAYMENT_COMPLETE = "redpos.engine.paymentComplete"; ! ! public static final String NOTIFICATION_POS_PAYMENT_SELECTED = "redpos.engine.paymentSelected"; ! } \ No newline at end of file |