⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s.java

📁 // pica客户端J2ME源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
// pica客户端J2ME源码,100%可运行可修改,J2ME逆向工程经典作品
// 作者:fangji999
// QQ:57979471 Email:fangji999@163.com
// 博客:http://hi.baidu.com/ccall_net
// QQ群:51719370
// 如用此源码重新改写的软件或转载,请保留本人联系方式,作品原创作者

package pica;

import java.io.IOException;
import java.util.*;
import javax.microedition.lcdui.*;

// Referenced classes of package pica:
//			Pica, aa, ab, ae, 
//			af, ai, c, d, 
//			g, i, j, m, 
//			o, p, q, t, 
//			v, w, ah
//登录主要信息展示处理界面
public final class s
{

	public int a;
	Timer b;
	private boolean d;
	private long e;
	public Hashtable c;

	public s()
	{
		a = -1;
		d = false;
		e = 0L;
		c = null;
	}

	public final void a()
	{
		System.out.println("sstest11");
                f();
		d = false;
		c = null;
		c = new Hashtable();
		Pica.m = null;
		Pica.e = null;
		Pica.J = null;
		Pica.n = null;
		Pica.ag = null;
		Pica.ah = null;
               // System.out.println("sstest22");
		Pica.m = new t();
               // System.out.println("sstest33");
		Pica.e = new j(false, "信息");
		Pica.e.r = Pica.v;
		Pica.e.si = 54;
              //  System.out.println("sstest44");
		Pica.J = new i();
		Pica.l.d.addElement(Pica.m);
		Pica.l.d.addElement(Pica.e);
		Pica.l.d.addElement(Pica.J);
		Pica.n = new d("PICA吧", (byte)0);
		Pica.l.d.addElement(Pica.n);
             //   System.out.println("sstest55");
		Pica.o = new g();
		Pica.ag = new Vector();
		Pica.ah = new Vector();
		a = 0;
	}

	public final void b()
	{
		Pica.k.b();
		f();
	}

	public final void c()
		throws Exception
	{
		if (Pica.h.b)
		{
			return;
		} else
		{
			a = 2;
			Pica.k.a("验证用户...");
			Pica.h.a();
			return;
		}
	}

	public final void a(String s1)
	{
		if (Pica.h.b)
		{
			return;
		} else
		{
			a = 1;
			w.a(s1, 1, Pica.l);
			Pica.k.b();
			f();
			return;
		}
	}

	public final void b(String s1)
	{
		if (Pica.h.b)
			return;
		Pica.f();
		boolean flag = false;
		try
		{
			if (!Pica.k.a)
			{
				if (!d)
				{
					if (a > 4)
					{
						Pica.l.a();
						w.a(s1, 1, Pica.l);
					} else
					{
						i("连接断开");
					}
				} else
				if (Pica.W)
				{
					Pica.l.a();
					w.a("由于网络问题,连接断开", 1, Pica.l);
				} else
				{
					flag = !Pica.k.a;
				}
			} else
			{
				w.e();
			}
			Pica.k.a = false;
			Pica.k.b();
			f();
			if (flag && !Pica.W)
			{
				Pica.h.c = true;
				w.b(false);
			}
			return;
		}
		catch (Exception  e)
		{
			return;
		}
	}

	public final void d()
		throws Exception
	{
		if (Pica.h.b)
			return;
		a = 5;
		if (w.i == 0)
			Pica.H = 100;
		else
			Pica.H = 0;
		Pica.d();
		Pica.k.a("读取联系人...");
		Pica.h.h();
	}

	private void i(String s1)
	{
		if (Pica.h.b)
		{
			return;
		} else
		{
			a = 4;
			Pica.l.a();
			w.a(s1, 1, Pica.l);
			f();
			return;
		}
	}

	public final void a(String s1, String s2, String s3, byte byte0, byte byte1, byte byte2, String as[][], 
			boolean flag, String s4, String s5, String s6)
	{
		if (Pica.h.b)
			return;
		try
		{
			m m1;
			if (Pica.aR && (m1 = Pica.m.b(s1)) != null && (s2 == null || s2.length() == 0))
				s2 = m1.a;
			if (s1.endsWith("qq.pica"))
				c.put(s1, s2);
			if (s4 == null)
				s4 = "";
			if (s5 == null)
				s5 = "";
                        System.out.println("name:"+s1+":s2:"+s2);
			Pica.m.a(s1, s2, s3, byte0, byte1, byte2, as, flag, s4, s5, s6);
			Pica.l.a(Pica.m);
			return;
		}
		catch (Exception  e)
		{
			return;
		}
	}

	public static void c(String s1)
		throws IOException
	{
		Displayable displayable = Pica.j.getCurrent();
		if (s1 != null && s1.equals("cluster.pica"))
		{
			w.a("没有找到符合条件的群!请重新设定查找条件。", 2000, displayable);
			return;
		} else
		{
			w.a("未找到符合条件的好友!", 2000, displayable);
			return;
		}
	}

	public static void a(String s1, String s2, String s3, String s4)
		throws IOException
	{
		Pica.J.a(s1, s2, s3, s4);
	}

	public static void a(String s1, String s2, String s3, String s4, String s5, boolean flag)
	{
		Pica.J.a(s1, s2, s3, s4, s5, flag);
	}

	public static void d(String s1)
	{
		if (s1.indexOf('%') != -1)
		{
			s1.substring(s1.indexOf("%") + 1, s1.length());
			Pica.j.setCurrent(Pica.l);
			return;
		}
		ab ab1 = Pica.J.b(s1);
		c c1;
		ah ah1;
		(ah1 = (c1 = Pica.J.a(ab1)).a).b(ab1);
		ah1.b();
		if (ah1.q() == 0)
		{
			Pica.J.p().removeElement(c1);
			Pica.l.d.setElementAt(Pica.J, 2);
			if (Pica.l.d.contains(Pica.K))
				Pica.l.d.removeElement(Pica.K);
			if (Pica.l.d.contains(Pica.f))
				Pica.l.d.removeElement(Pica.f);
			if (Pica.f != null)
			{
				Pica.f.m();
				Pica.f = null;
			}
			if (Pica.K != null)
			{
				Pica.K.m();
				Pica.K = null;
			}
			Pica.f();
			Pica.l.a(2);
		}
		if (Pica.L)
		{
			String s2 = ((ab)Pica.J.a).b;
			w.a("群[" + s2 + "]被群主解散!", 3000, Pica.l);
			Pica.M = null;
			if (Pica.l.d.contains(Pica.K))
				Pica.l.d.removeElement(Pica.K);
			if (Pica.l.d.contains(Pica.f))
				Pica.l.d.removeElement(Pica.f);
			if (Pica.f != null)
			{
				Pica.f.m();
				Pica.f = null;
			}
			if (Pica.K != null)
			{
				Pica.K.m();
				Pica.K = null;
			}
			Pica.f();
			if (!Pica.l.d.contains(Pica.K))
				Pica.l.d.addElement(Pica.J);
			Pica.l.a(2);
		}
		if (((aa) (Pica.J)).p >= Pica.J.q())
			Pica.J.p--;
		Pica.j.setCurrent(Pica.l);
	}

	public static void e(String s1)
	{
		Pica.V = null;
		String s2;
		String s3 = s2 = s1.concat(";");
		Object obj = null;
		boolean flag = false;
		int j1 = 0;
		do
		{
			int l;
			if ((l = s2.indexOf(";")) == -1)
				break;
			String s4 = s2.substring(0, l);
			s2 = s2.substring(l + 1, s2.length());
			if (s4.indexOf("/") == -1)
				j1++;
		} while (true);
		Pica.V = new String[j1];
		int k1 = 0;
		do
		{
			int i1;
			if ((i1 = s3.indexOf(";")) == -1)
				break;
			String s5 = s3.substring(0, i1);
			s3 = s3.substring(i1 + 1, s3.length());
			if (s5.indexOf("/") == -1)
			{
				Pica.V[k1] = s5;
				k1++;
			}
		} while (true);
	}

	public static void a(String s1, String s2, boolean flag)
		throws IOException
	{
		if (i.b != null && s1.indexOf(i.b) != -1 && Pica.K != null)
		{
			if (s1.substring(0, s1.indexOf("%")).equals(w.ls))
			{
				if (flag)
				{
					if (s1.indexOf("@game.pica") != -1)
						Pica.h.e();
					else
						Pica.h.c();
				} else
				{
					Pica.h.d();
					Pica.L = false;
				}
				Pica.M = null;
				if (Pica.l.d.contains(Pica.K))
					Pica.l.d.removeElement(Pica.K);
				Pica.l.d.setElementAt(Pica.J, 2);
				Pica.l.a(2);
				Pica.f = null;
				Pica.K = null;
				Pica.f();
				Pica.j.setCurrent(Pica.l);
				return;
			}
			Pica.K.b(s1);
		}
	}

	public final void a(String s1, String s2, String s3, byte byte0, String s4, String s5, String s6, 
			String s7)
		throws IOException
	{
		if (s1.indexOf(Pica.M) != -1)
		{
			if (!j(s1))
			{
				Pica.K.a(true, s1, s2, byte0, s5, s6, s7);
				return;
			}
			Pica.K.a(false, s1, s2, byte0, s5, s6, s7);
		}
	}

	private static boolean j(String s1)
	{
		for (int l = 0; l < Pica.K.q(); l++)
		{
			o o1 = (o)Pica.K.b(l);
			if (s1.equals(o1.j))
				return true;
		}

		return false;
	}

	public static void f(String s1)
		throws IOException
	{
		Alert alert;
		(alert = new Alert("错误!")).setString(" " + s1 + " ");
		alert.setTimeout(-2);
		Pica.j.setCurrent(alert, Pica.l);
		Pica.M = null;
		Pica.f.a();
		Pica.f = null;
		Pica.l.d.setElementAt(Pica.J, 2);
		Pica.l.a(2);
	}

	public final void a(String s1, String s2, String s3, String s4, String s5, String s6, String s7, 
			String s8, String s9, String s10, String s11, String s12, boolean flag, String s13, 
			String s14, String s15, String s16, String s17, String s18, String s19, String s20)
	{
		String s21 = s1.indexOf('/') != -1 ? s1.substring(0, s1.indexOf('/')) : s1;
		String s22 = s2.indexOf('/') != -1 ? s2.substring(0, s2.indexOf('/')) : s2;
		boolean flag1 = false;
		if (flag)
		{
			if (s21.indexOf("@cluster.pica") != -1)
			{
				String s23 = s21.indexOf('%') != -1 ? s21.substring(0, s21.indexOf('%')) : s21;
				String s25 = null;
				if (s2 != null)
					s25 = s2.indexOf("@pica") != -1 ? s2.substring(0, s2.indexOf("@pica")) : s2;
				if (s21.equals(Pica.M))
				{
					Pica.au = s4;
					Pica.av = s13;
					Pica.aw = s15;
					Pica.ax = s11;
					Pica.ay = s18;
					w.a("群资料修改成功", 3000, Pica.l);
					Pica.f.q = Pica.au;
				} else
				if (s25 != null && s25.length() > 0 && s25.equals(s23))
				{
					Pica.ap = s4;
					if (s16.equals("M"))
						Pica.aq = "男";
					else
						Pica.aq = "女";
					Pica.ar = s17;
					Pica.as = s9;
					Pica.at = s11;
					try
					{
						Pica.h.i(Pica.M, "update");
					}
					catch (Exception  e) { }
					o o1;
					(o1 = (o)Pica.K.b(0)).i = Pica.ap;
					w.a("群名片修改成功", 2000, Pica.l);
				}
				return;
			}
			Pica.N = Pica.O = s4;
			Pica.ai = s6;
			Pica.aj = s7;
			Pica.ak = s8;
			Pica.al = s11;
			int l;
			try
			{
				if (s12 == null || s12.length() == 0)
					Pica.am = 0;
				else
				if ((l = Integer.parseInt(s12)) < 0 || l >= 9)
					Pica.am = 0;
				else
					Pica.am = l;
			}
			catch (Exception  e)
			{
				Pica.am = 0;
			}
			try
			{
				if (Pica.H != 100)
					Pica.h.e("available", null);
				w.a("个人资料修改成功", 2000, Pica.j.getCurrent());
				return;
			}
			catch (Exception  e)
			{
				return;
			}
		}
		if (s21.equals(s22))
		{
			Pica.N = Pica.O = s4;
			Pica.ai = s6;
			Pica.aj = s7;
			Pica.ak = s8;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -