Permalink
Browse files

Initial Commit.

  • Loading branch information...
0 parents commit 38526c6200ad07ba3e178f18f89930f6717c558f @daniloercoli committed Jul 5, 2012
Showing with 10,672 additions and 0 deletions.
  1. +13 −0 Application Descriptor
  2. +339 −0 License.txt
  3. +56 −0 README
  4. +10 −0 bb_mopress.alx
  5. +10 −0 bb_old_mopress.alx
  6. +52 −0 build.properties
  7. +197 −0 build.xml
  8. +331 −0 build_without_j2mepolish.xml
  9. +43 −0 doc/developer_blog.txt
  10. +1 −0 doc/production.txt
  11. +91 −0 doc/response.xml
  12. +53 −0 doc/wp.getUsersBlogs-response.xml
  13. BIN lib/kxml2-2.3.0.jar
  14. BIN resources/arrow_down.png
  15. BIN resources/arrow_left.gif
  16. BIN resources/arrow_right.gif
  17. BIN resources/arrow_up.png
  18. BIN resources/audio.gif
  19. +26 −0 resources/defaultPostTemplate.html
  20. BIN resources/dot.png
  21. BIN resources/icon0.png
  22. BIN resources/icon1.png
  23. BIN resources/icon2.png
  24. BIN resources/icon3.png
  25. +47 −0 resources/messages.txt
  26. +65 −0 resources/messages_it.txt
  27. BIN resources/mic.gif
  28. BIN resources/mobiler-ico.png
  29. +474 −0 resources/polish.css
  30. BIN resources/splash.png
  31. BIN resources/splash2.png
  32. +572 −0 source/com/danais/blog/BlogController.java
  33. +67 −0 source/com/danais/blog/BlogDeleteForm.java
  34. +490 −0 source/com/danais/blog/BlogPostForm.java
  35. +123 −0 source/com/danais/blog/BlogPostPreviewForm.java
  36. +40 −0 source/com/danais/blog/BlogUpdateForm.java
  37. +223 −0 source/com/danais/blog/CommentsList.java
  38. +54 −0 source/com/danais/blog/ConfirmForm.java
  39. +139 −0 source/com/danais/blog/LoginDetailsForm.java
  40. +353 −0 source/com/danais/blog/PostList.java
  41. +149 −0 source/com/danais/blog/PostTextBox.java
  42. +190 −0 source/com/danais/blog/Preferences.java
  43. +246 −0 source/com/danais/blog/PreferencesForm.java
  44. +180 −0 source/com/danais/blog/SimpleTimeZone.java
  45. +71 −0 source/com/danais/blog/TimeZoneList.java
  46. +71 −0 source/com/danais/blog/conn/BlogAuthConn.java
  47. +162 −0 source/com/danais/blog/conn/BlogConn.java
  48. +50 −0 source/com/danais/blog/conn/BlogConnResponse.java
  49. +37 −0 source/com/danais/blog/conn/BlogUpdateConn.java
  50. +66 −0 source/com/danais/blog/conn/ConnectionMessageBox2.java
  51. +78 −0 source/com/danais/blog/conn/DeleteCommentConn.java
  52. +45 −0 source/com/danais/blog/conn/DeletePostConn.java
  53. +77 −0 source/com/danais/blog/conn/EditCommentConn.java
  54. +109 −0 source/com/danais/blog/conn/EditPostConn.java
  55. +106 −0 source/com/danais/blog/conn/GetCommentsConn.java
  56. +106 −0 source/com/danais/blog/conn/GetPostConn.java
  57. +116 −0 source/com/danais/blog/conn/NewMediaObjectConn.java
  58. +113 −0 source/com/danais/blog/conn/NewPostConn.java
  59. +63 −0 source/com/danais/blog/conn/RecentPostConn.java
  60. +99 −0 source/com/danais/blog/model/Blog.java
  61. +46 −0 source/com/danais/blog/model/Category.java
  62. +197 −0 source/com/danais/blog/model/Comment.java
  63. +157 −0 source/com/danais/blog/model/Post.java
  64. +39 −0 source/com/danais/blog/model/PostState.java
  65. +77 −0 source/com/danais/mobile/AboutForm.java
  66. +24 −0 source/com/danais/mobile/AuthPassCripto.java
  67. +88 −0 source/com/danais/mobile/HelpForm.java
  68. +423 −0 source/com/danais/mobile/MainCanvas.java
  69. +65 −0 source/com/danais/mobile/MoPressMidlet.java
  70. +67 −0 source/com/danais/mobile/StartCanvas.java
  71. +124 −0 source/com/danais/net/HttpConnUtils.java
  72. +86 −0 source/com/danais/net/MyHttpConn.java
  73. +32 −0 source/com/danais/net/MyHttpConnResponse.java
  74. +586 −0 source/com/danais/security/MD5.java
  75. +79 −0 source/com/danais/security/MD5State.java
  76. +125 −0 source/com/danais/utils/CalendarUtils.java
  77. +80 −0 source/com/danais/utils/FileUtils.java
  78. +76 −0 source/com/danais/utils/Globals.java
  79. +58 −0 source/com/danais/utils/Language.java
  80. +88 −0 source/com/danais/utils/MessageBox.java
  81. +98 −0 source/com/danais/utils/StringUtils.java
  82. +183 −0 source/com/danais/utils/mm/AudioCaptureForm.java
  83. +58 −0 source/com/danais/utils/mm/AudioPreviewForm.java
  84. +231 −0 source/com/danais/utils/mm/CaptureVideoAndPhotoCanvas.java
  85. +82 −0 source/com/danais/utils/mm/MediaObject.java
  86. +238 −0 source/com/danais/utils/mm/MultimediaCaptureController.java
  87. +25 −0 source/com/danais/utils/mm/PhotoPreviewForm.java
  88. +77 −0 source/com/danais/utils/mm/VideoPreviewCanvas.java
  89. +221 −0 source/com/danais/utils/observer/Observable.java
  90. +32 −0 source/com/danais/utils/observer/Observer.java
  91. +146 −0 thirdparty/org/kobjects/base64/Base64.java
  92. +243 −0 thirdparty/org/kxmlrpc/XmlRpcClient.java
  93. +53 −0 thirdparty/org/kxmlrpc/XmlRpcException.java
  94. +247 −0 thirdparty/org/kxmlrpc/XmlRpcParser.java
  95. +141 −0 thirdparty/org/kxmlrpc/XmlRpcWriter.java
  96. +77 −0 thirdparty/org/kxmlrpc/util/IsoDate.java
@@ -0,0 +1,13 @@
+serverurl: http://localhost/geo4you/mobile.php
+MIDlet-1: MoPress,/mobiler-ico.png,com.danais.mobile.MoPressMidlet
+server_session_name: GEO4YOUID
+MIDlet-Jar-URL: mopress.jar
+MIDlet-Icon: /mobiler-ico.png
+MicroEdition-Configuration: CLDC-1.1
+MIDlet-Version: 0.1.0
+MIDlet-Vendor: Danais s.r.l.
+MIDlet-Name: Danais MobilePress
+MIDlet-Description: Danais Mobile Blogging Suite
+MIDlet-Info-URL: www.danais.it
+MicroEdition-Profile: MIDP-2.0
+MIDlet-Permissions: javax.microedition.io.Connector.http

Large diffs are not rendered by default.

Oops, something went wrong.
56 README
@@ -0,0 +1,56 @@
+MoPress is a blogging client application developed for mobile phones. It allows a mobile phone to post a content (text, image, audio, video) to a Blog, using any type of available network (mobile phone network or Wi-Fi network).
+
+http://www.danais.it/web/eng/demo/mopress.html
+
+Building Mopress
+-----------------
+
+ a) Sun WTK must be installed, set WTK_HOME, e.g. WTK_HOME=C:\WTK2.5.1
+ Download Link: http://java.sun.com/products/sjwtoolkit/
+
+ b) J2Me Polish must be installed:
+ Download link: http://www.j2mepolish.org
+
+
+ c) Eclipse with Ant support is raccomanded
+
+
+ d) Running ant task "j2mepolish" for a complete build.
+
+
+License information.
+--------------------
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+See the file "LICENSE.txt" for the full text of the GNU General Public License.
+
+
+MoPress uses a modified version of kXML-RPC <http://sourceforge.net/projects/kxmlrpc/>,
+which in turn uses the kXML parser <http://sourceforge.net/projects/kxml/>. These two
+products are licensed under licensed under the GNU Library or Lesser General Public License (LGPL).
+See the respective web pages for a copy of the license. The modified source code for
+kXML-RPC is included with this source distribution, in the "thirdparty" source directory.
+
+MoPress uses J2ME Polish suite. J2ME Polish is distributed under the GNU General Public License.
+http://www.j2mepolish.org.
+
+
+Contact
+-------
+The Mopress team consists of:
+Danilo Ercoli - ercoli@gmail.com - project admin, developer & initiator
+
+Special Thanks to Danais srl, www.danais.it, that has actively contributed to the development by givin testing devices, food, and money.
@@ -0,0 +1,10 @@
+<loader version="1.0" />
+<application id="test">
+<description>WordPress Mobile Client</description>
+<version>0.0.1</version>
+<vendor>Danais s.r.l.</vendor>
+<fileset Java="1.0">
+<files>bb_mopress.cod</files>
+</fileset>
+</application>
+</loader>
@@ -0,0 +1,10 @@
+<loader version="1.0" />
+<application id="test">
+<description>WordPress Mobile Client</description>
+<version>0.0.1</version>
+<vendor>Danais s.r.l.</vendor>
+<fileset Java="1.0">
+<files>bb_mopress.cod</files>
+</fileset>
+</application>
+</loader>
@@ -0,0 +1,52 @@
+#wtk defs
+wtk.home=C:/opt/WTK2.5.2
+wtk.cldc.version=1.1
+wtk.midp.version=2.0
+
+#define folders
+src.dir=${basedir}/source
+lib.dir=${basedir}/lib
+resources.dir=${basedir}/resources
+#building dirs
+build.dir=${basedir}/buildAnt
+build.src.dir=${build.dir}/src
+classes.dir=${build.dir}/classes
+dist.dir=${basedir}/buildAnt/dist
+rim.dist.dir=${dist.dir}/rim
+
+#libs
+antenna.lib.jar=C:/opt/J2ME/antenna-bin-1.0.2.jar
+proguard.lib.jar=C:/opt/J2ME/proguard4.3/lib/proguard.jar
+
+
+#midlet properties
+app.name=MoPress
+app.description=Danais Mobile Blogging Suite
+app.infourl=www.danais.it
+midlet.vendor=Danais s.r.l.
+MIDlet-Jar-URL: mopress.jar
+midlet.version=0.1.0
+midlet.version.string=0-1-0
+midlet.icon=/mobiler-ico.png
+midlet.permissions= javax.microedition.io.Connector.http
+midlet.permissions.opt=
+package.name= mopress
+midlet1.name=MoPress
+midlet1.class=com.danais.mobile.MoPressMidlet
+midlet1.icon=/mobiler-ico.png
+
+#perchè eclipse li inserisce?
+microedition.configuration: CLDC-1.1
+microedition.profile: MIDP-2.0
+
+
+#keystore
+keystore.file=
+keystore.pass=
+cert.pass=
+cert.alias=
+
+#build path
+blackberry.home=C:/opt/Research In Motion/
+bb_JDE_46=BlackBerry JDE 4.6.0
+java_home=C:/opt/jdk1.6.0_05/
197 build.xml
@@ -0,0 +1,197 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." default="j2mepolish" name="mopress">
+
+ <!-- import user specific properties -->
+ <!-- property file="${user.name}.properties" / -->
+
+ <!-- The device which is used for the emulator. -->
+ <!-- You can call Ant from the command line with another -->
+ <!-- device like this: ant -Ddevice=Generic/midp2 emulator -->
+ <property name="device" value="Generic/AnyPhone"/>
+ <property name="devices" value="${device}"/>
+
+ <!-- Generic/Midp2Cldc11, -->
+ <!-- property name="devices" value="${device},Nokia/Series40E3,Nokia/Series60E3,Sony-Ericsson/JavaPlatform8"/ -->
+
+
+ <!-- The polish.home property needs to point to the directory -->
+ <!-- containing the J2ME Polish installation. -->
+ <property name="polish.home" location="C:\opt\J2ME-Polish" />
+
+ <!-- import global properties -->
+ <property file="${polish.home}/global.properties" />
+
+
+ <!-- Definition of the J2ME Polish task: -->
+ <taskdef name="j2mepolish"
+ classname="de.enough.polish.ant.PolishTask"
+ classpath="${polish.home}/lib/enough-j2mepolish-build.jar:${polish.home}/lib/jdom.jar"
+ />
+
+ <!-- path del JDE compiler -->
+ <property name="blackberry.home"
+ location="C:\\opt\\Research In Motion\\BlackBerry JDE 4.6.0" />
+
+ <!-- build targets, each target can be called via "ant [name]",
+ e.g. "ant clean", "ant notest j2mepolish" or just "ant" for calling the default-target -->
+ <target name="test">
+ <property name="test" value="true"/>
+ <property name="dir.work" value="build/test"/>
+ </target>
+
+ <target name="deploy">
+ <property name="deploy-url" value="http://www.danais.it/files/mopress/"/>
+ </target>
+
+ <target name="init">
+ <property name="test" value="false"/>
+ <property name="deploy-url" value=""/>
+ <property name="dir.work" value="build/real"/>
+ </target>
+
+ <target depends="init" name="j2mepolish">
+ <j2mepolish>
+ <!-- general settings -->
+ <info
+ name="Mopress"
+ vendorName="Danais s.r.l."
+ version="0.3.5"
+ copyright="Copyright 2009 Danais srl. All rights reserved."
+ description="Danais Mobile Blogging Suite"
+ icon="mobiler-ico.png"
+ infoUrl="http://www.danais.it"
+ jarName="${polish.vendor}-${polish.name}-${polish.locale}-mopress.jar"
+ jarUrl="${deploy-url}${polish.jarName}"
+ deleteConfirm="Do you really want to remove MoPress?"
+ />
+
+ <!-- selection of supported devices -->
+ <deviceRequirements if="test">
+ <requirement name="Identifier" value="${device}"/>
+ </deviceRequirements>
+ <deviceRequirements unless="test">
+ <requirement name="Identifier" value="${devices}"/>
+ </deviceRequirements>
+
+ <!-- build settings -->
+ <build fullscreen="menu" usePolishGui="true" workDir="${dir.work}" >
+
+
+ <sources>
+ <source dir="source" />
+ <source dir="thirdparty" />
+ </sources>
+
+ <!-- midlets definition -->
+ <midlet class="com.danais.mobile.MoPressMidlet" name="MoPress"/>
+
+ <libraries>
+ <library file="lib/kxml2-2.3.0.jar" />
+ </libraries>
+
+ <postcompiler name="floater">
+ <parameter name="verbose" value="false" />
+ </postcompiler>
+
+ <!-- project-wide variables - used for preprocessing -->
+ <variables>
+ <variable name="polish.TiledLayer.useBackBuffer" value="true"/>
+ <variable name="polish.TiledLayer.TransparentTileColor" value="0x00FF00"/>
+ <variable name="polish.useScrollBar" value="true" />
+ <variable name="polish.TextField.suppressCommands" value="true"/>
+ </variables>
+ <!-- You can set localized variables in the resources/messages.txt files as well. -->
+ <!-- variables includeAntProperties="true" >
+ <variable name="polish.TextField.useDirectInput" value="true" />
+ <variable name="polish.TextField.usePredictiveInput" value="true" />
+ <variable name="polish.TextField.includeInputInfo" value="true" />
+ <variable name="polish.TextField.supportSymbolsEntry" value="true" />
+ <variable name="polish.MenuBar.useExtendedMenuBar" value="true" />
+ <variable name="polish.useScrollBar" value="true" />
+ <variable name="polish.ScreenInfo.enable" value="true" />
+ </variables -->
+
+ <manifestFilter if="polish.vendor == Samsung">
+ Manifest-Version, MIDlet-Name, MIDlet-Version,
+ MIDlet-Vendor, MIDlet-1*,MIDlet-Icon?, MIDlet-Data-Size?,
+ MIDlet-Description?, MIDlet-Info-URL?,
+ MicroEdition-Profile?, MicroEdition-Configuration?
+ </manifestFilter>
+ <jad>
+ <filter if="polish.vendor == Samsung">
+ MIDlet-Name, MIDlet-Version, MIDlet-Vendor,
+ MIDlet-1*,MIDlet-Icon?, MIDlet-Data-Size?, MIDlet-Description?,
+ MIDlet-Info-URL?, MicroEdition-Profile?, MicroEdition-Configuration?
+ </filter>
+ </jad>
+
+ <!-- obfuscator settings: do not obfuscate when the test-property is true -->
+ <obfuscator name="ProGuard" unless="test or polish.blackberry">
+ <parameter name="dontusemixedcaseclassnames" value="" />
+ <parameter name="repackageclasses" value=""/>
+ <parameter name="allowaccessmodification" value=""/>
+ <parameter name="overloadaggressively" value=""/>
+ <parameter name="microedition" value="" />
+ <!-- parameter name="ignorewarning" value="" / -->
+ </obfuscator>
+
+ <!-- debug settings: only include debug setting when the test-property is true -->
+ <debug level="debug" showLogOnError="true" verbose="true" if="test">
+ <filter level="info" pattern="de.enough.polish.*"/>
+ </debug>
+
+ <resources
+ dir="resources"
+ defaultexcludes="yes"
+ excludes="readme.txt, *.definition">
+
+ <localization dynamic="true" defaultLocale="en">
+ <locale name="en" />
+ <locale name="it" encoding="UTF-8"/>
+ </localization>
+
+ </resources>
+ </build>
+ <!-- launch emulator -->
+ <emulator securityDomain="maximum" enableMemoryMonitor="false" if="test">
+ <parameter name="-Xheapsize" value="64M" />
+
+
+ </emulator>
+ </j2mepolish>
+ </target>
+
+ <target name="emulator" depends="test,j2mepolish" description="invokes the emulator">
+ </target>
+
+ <target description="allows a clean build. You should call [ant clean] whenever you made changes to devices.xml, vendors.xml or groups.xml" name="clean">
+ <delete dir="build"/>
+ <delete dir="dist" includes="**/*" />
+ </target>
+
+ <target
+ name="cleanbuild"
+ description="allows a clean build. You should call [ant cleanbuild] whenever you made changes to devices.xml, vendors.xml or groups.xml"
+ depends="clean, j2mepolish"
+ />
+
+
+ <target name="src-dist" description="Crea il file .zip dei sorgenti" depends="clean,init">
+ <echo>*************************************************************</echo>
+ <echo> Create file zip </echo>
+ <echo>*************************************************************</echo>
+ <mkdir dir="dist"/>
+ <zip destfile="c:/mopress_src.zip" >
+ <fileset dir=".">
+ <exclude name="**/*.jbf"/>
+ <exclude name="**/Thumbs.db"/>
+ <exclude name="dist/**/"/>
+ <exclude name="bin/**/"/>
+ <exclude name="build/**/"/>
+ <exclude name=".mtj*/**"/>
+ <exclude name=".polish*/**"/>
+ <exclude name=".setting*/**"/>
+ </fileset>
+ </zip>
+ </target>
+</project>
Oops, something went wrong.

0 comments on commit 38526c6

Please sign in to comment.