code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
<?php
require_once 'Zend/Config/Xml.php';
class XMLParserPlugin {
/**
* Parsea una seccion de un archivo xml
*
* @param Xml file $xmlfile
* @param section $option
* @return parsed section from xml file
*/
public static function parse($xmlfile, $section) {
// Parseo XML
$parsed = n... | 0admin | trunk/plugin/XMLParserPlugin.php | PHP | oos | 389 |
<?php
//set_include_path('.:/php/includes:/home/diegolaprida/domains/simesev.com.ar/public_html/admin/core:/usr/lib/php:/usr/local/lib/php');
require_once 'Zend/Session/Namespace.php';
class SessionPlugin {
/**
* Retorna la sessionVar del namespace
*/
public static function getSessionValue($sessionV... | 0admin | trunk/plugin/SessionPlugin.php | PHP | oos | 1,004 |
<?php
class AppConfigPlugin {
/**
* Retorna el objeto Menu con sus propiedades seteadas
*/
public static function getMenuItems($rol = null) {
require('conf/configuration.php');
// si el rol es "administrador" retornar todos los menu items
if ($rol == "0" || $rol == null) {
return $m... | 0admin | trunk/plugin/AppConfigPlugin.php | PHP | oos | 3,638 |
<?php
/**
* thumbnail.inc.php
*
* @author Ian Selby (ian@gen-x-design.com)
* @copyright Copyright 2006
* @version 1.1 (PHP5)
*
*/
/**
* PHP class for dynamically resizing, cropping, and rotating images for thumbnail purposes and either displaying them on-the-fly or saving them.
*
*/
class... | 0admin | trunk/plugin/ThumbnailPlugin.php | PHP | oos | 21,158 |
<?php
class Utils {
// Dada una fecha en php la retorna con formato mysql
public static function getDateForDB($fecha) {
if ($fecha == "")
return "";
$numeros = explode("-",$fecha);
return trim($numeros[2])."-".trim($numeros[1])."-".trim($numeros[0]);
}
public static function getDateForView(... | 0admin | trunk/plugin/UtilsPlugin.php | PHP | oos | 587 |
<?php
include_once('plugin/LoginPlugin.php');
// Valida que exista el usuario
if (!LoginPlugin::isLogged()) {
include_once('coreapi/SmartyManager.php');
$smarty = SmartyManager::getSmarty();
$smarty->display('login.tpl');
} | 0admin | trunk/include/validsession.php | PHP | oos | 237 |
<?php
// Include
include_once('plugin/SmartyPlugin.php');
include_once('plugin/LoginPlugin.php');
include_once('plugin/AppConfigPlugin.php');
include_once('plugin/SecurityAccessPlugin.php');
include_once('plugin/CommonPlugin.php');
// Para establecer locale en espanol (evita problemas como el formateo de l... | 0admin | trunk/include/header.php | PHP | oos | 1,744 |
<?php
require_once('include/header.php');
require_once('dao/FactoryDAO.php');
require_once('plugin/UtilsPlugin.php');
require_once('vo/ContenidoVO.php');
require_once('search/ContenidoSearchCriteria.php');
class ContenidoLogic {
var $_POST;
var $contenidoDAO;
function ContenidoLogic($post){
$this->... | 0admin | trunk/logic/ContenidoLogic.php | PHP | oos | 1,234 |
<?php
require_once('include/header.php');
require_once('plugin/UtilsPlugin.php');
require_once('dao/FactoryDAO.php');
require_once('vo/ImagenesVO.php');
require_once('search/ImagenesSearchCriteria.php');
/**
* Business logic directly reflects the use cases. The business logic deals with VOs,
* modifies t... | 0admin | trunk/logic/ImagenesLogic.php | PHP | oos | 6,348 |
<?php
require_once('include/header.php');
require_once('dao/FactoryDAO.php');
require_once('plugin/UtilsPlugin.php');
require_once('vo/ClientesVO.php');
require_once('search/ClientesSearchCriteria.php');
class ClientesLogic {
var $_POST;
var $clientesDAO;
function ClientesLogic($post){
$this->$_P... | 0admin | trunk/logic/ClientesLogic.php | PHP | oos | 1,274 |
<?php
require_once('include/header.php');
require_once('dao/FactoryDAO.php');
require_once('plugin/UtilsPlugin.php');
require_once('vo/NoticiasVO.php');
require_once('search/NoticiasSearchCriteria.php');
class NoticiasLogic {
var $_POST;
var $noticiasDAO;
function NoticiasLogic($post){
$this->$_POS... | 0admin | trunk/logic/NoticiasLogic.php | PHP | oos | 1,614 |
<?php
require_once('include/header.php');
require_once('dao/FactoryDAO.php');
require_once('plugin/UtilsPlugin.php');
require_once('vo/ContactoVO.php');
require_once('search/ContactoSearchCriteria.php');
class ContactoLogic {
var $_POST;
var $contactoDAO;
function ContactoLogic($post){
$this->$_P... | 0admin | trunk/logic/ContactoLogic.php | PHP | oos | 1,320 |
<?php
require_once('include/header.php');
require_once('dao/FactoryDAO.php');
require_once('vo/UsuarioVO.php');
require_once('search/UsuarioSearchCriteria.php');
/**
* Business logic directly reflects the use cases. The business logic deals with VOs,
* modifies them according to the business requirements an... | 0admin | trunk/logic/UsuariosLogic.php | PHP | oos | 2,187 |
<?php
require_once('include/header.php');
require_once('dao/FactoryDAO.php');
require_once('plugin/UtilsPlugin.php');
require_once('vo/AvisosVO.php');
require_once('search/AvisosSearchCriteria.php');
class AvisosLogic {
var $_POST;
var $avisosDAO;
function AvisosLogic($post){
$this->$_POST = $pos... | 0admin | trunk/logic/AvisosLogic.php | PHP | oos | 1,133 |
<?php
require_once('include/header.php');
require_once('vo/ContactoVO.php');
require_once('search/ContactoSearchCriteria.php');
require_once('logic/ContactoLogic.php');
require('conf/configuration.php');
$logic = new ContactoLogic($_POST);
// Ordenamiento
if($_GET[order] == "asc")
$order= "desc";
else if... | 0admin | trunk/contacto.php | PHP | oos | 3,357 |
<?php
/**
* When a page is called, the page controller is run before any output is made.
* The controller's job is to transform the HTTP request into business objects,
* then call the approriate logic and prepare the objects used to display the response.
*
* The page logic performs the following steps:
... | 0admin | trunk/myaccount.php | PHP | oos | 2,398 |
<?php
// Include
include_once('plugin/LoginPlugin.php');
include_once('plugin/SmartyPlugin.php');
include_once('plugin/AppConfigPlugin.php');
include_once('plugin/CommonPlugin.php');
// Ejecutar la accion
if (isset($_GET[action])) {
require_once($_GET[action].".php");
}
// Chequea si el usuario ya es... | 0admin | trunk/index.php | PHP | oos | 719 |
package com.hlidskialf.android.hardware;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
public class ShakeListener implements SensorEventListener {
private static final int FORCE... | 061304011116lyj-lyj | src/com/hlidskialf/android/hardware/ShakeListener.java | Java | asf20 | 2,826 |
/***
Copyright (c) 2008-2009 CommonsWare, LLC
Portions (c) 2009 Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | 061304011116lyj-lyj | src/com/commonsware/cwac/sacklist/SackOfViewsAdapter.java | Java | asf20 | 4,702 |
/***
Copyright (c) 2008-2009 CommonsWare, LLC
Portions (c) 2009 Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | 061304011116lyj-lyj | src/com/commonsware/cwac/merge/MergeAdapter.java | Java | asf20 | 8,691 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import and... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/FanfouWidgetSmall.java | Java | asf20 | 8,339 |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.content.Intent;
import a... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ProfileActivity.java | Java | asf20 | 20,034 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import android.app.SearchManager;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.view.V... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/SearchResultActivity.java | Java | asf20 | 9,651 |
package com.ch_linghu.fanfoudroid.service;
public interface IService {
void startService();
void stopService();
}
| 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/service/IService.java | Java | asf20 | 118 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/service/BootReceiver.java | Java | asf20 | 1,225 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/service/TwitterService.java | Java | asf20 | 16,138 |
package com.ch_linghu.fanfoudroid.service;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/service/WidgetService.java | Java | asf20 | 4,879 |
package com.ch_linghu.fanfoudroid.service;
import java.util.List;
import android.content.Context;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
/**
* Location S... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/service/LocationService.java | Java | asf20 | 3,207 |
package com.ch_linghu.fanfoudroid;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import an... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/AboutActivity.java | Java | asf20 | 2,485 |
package com.ch_linghu.fanfoudroid.data;
import com.ch_linghu.fanfoudroid.fanfou.DirectMessage;
import com.ch_linghu.fanfoudroid.fanfou.User;
import com.ch_linghu.fanfoudroid.util.TextHelper;
public class Dm extends Message {
@SuppressWarnings("unused")
private static final String TAG = "Dm";
public bool... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/data/Dm.java | Java | asf20 | 851 |
package com.ch_linghu.fanfoudroid.data;
import java.util.Date;
import android.os.Parcel;
import android.os.Parcelable;
public class User implements Parcelable {
public String id;
public String name;
public String screenName;
public String location;
public String description;
public String profil... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/data/User.java | Java | asf20 | 2,793 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/data/Tweet.java | Java | asf20 | 6,268 |
package com.ch_linghu.fanfoudroid.data;
import java.util.Date;
public class Message {
public String id;
public String screenName;
public String text;
public String profileImageUrl;
public Date createdAt;
public String userId;
public String favorited;
public String truncated;
public String inRe... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/data/Message.java | Java | asf20 | 501 |
package com.ch_linghu.fanfoudroid.data;
import android.database.Cursor;
public interface BaseContent {
long insert();
int delete();
int update();
Cursor select();
}
| 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/data/BaseContent.java | Java | asf20 | 174 |
package com.ch_linghu.fanfoudroid.app;
import android.graphics.Bitmap;
import android.widget.ImageView;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.app.LazyImageLoader.ImageLoaderCallback;
public class SimpleImageLoader {
public static void display(final ImageView imageVie... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/app/SimpleImageLoader.java | Java | asf20 | 789 |
package com.ch_linghu.fanfoudroid.app;
import java.lang.Thread.State;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import android.graphi... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/app/LazyImageLoader.java | Java | asf20 | 5,467 |
package com.ch_linghu.fanfoudroid.app;
import android.text.Spannable;
import android.text.method.LinkMovementMethod;
import android.text.method.MovementMethod;
import android.view.MotionEvent;
import android.widget.TextView;
public class TestMovementMethod extends LinkMovementMethod {
private double mY;
... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/app/TestMovementMethod.java | Java | asf20 | 1,229 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/app/ImageManager.java | Java | asf20 | 13,800 |
package com.ch_linghu.fanfoudroid.app;
import android.graphics.Bitmap;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterApplication;
public interface ImageCache {
public static Bitmap mDefaultBitmap = ImageManager
.drawableToBitmap(TwitterApplication.mContext.getResources()
... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/app/ImageCache.java | Java | asf20 | 457 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/app/Preferences.java | Java | asf20 | 2,768 |
package com.ch_linghu.fanfoudroid.app;
import java.util.HashMap;
import android.graphics.Bitmap;
public class MemoryImageCache implements ImageCache {
private HashMap<String, Bitmap> mCache;
public MemoryImageCache() {
mCache = new HashMap<String, Bitmap>();
}
@Override
public Bitmap get(Str... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/app/MemoryImageCache.java | Java | asf20 | 785 |
package com.ch_linghu.fanfoudroid.app;
import android.app.Activity;
import android.content.Intent;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.LoginActivity;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.fanfou.RefuseError;
import com.ch_linghu.fanfoudroid.http.HttpAuthExcepti... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/app/ExceptionHandler.java | Java | asf20 | 1,794 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/TwitterActivity.java | Java | asf20 | 6,852 |
/*
Copyright (c) 2007-2009
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following discla... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/Query.java | Java | asf20 | 6,257 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/Photo.java | Java | asf20 | 3,073 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/QueryResult.java | Java | asf20 | 5,759 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/WeiboSupport.java | Java | asf20 | 2,420 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/Trend.java | Java | asf20 | 3,047 |
/*
* UserObjectWapper.java created on 2010-7-28 上午08:48:35 by bwl (Liu Daoru)
*/
package com.ch_linghu.fanfoudroid.fanfou;
import java.io.Serializable;
import java.util.List;
/**
* 对User对象列表进行的包装,以支持cursor相关信息传递
*
* @author liudaoru - daoru at sina.com.cn
*/
public class UserWapper implements Se... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/UserWapper.java | Java | asf20 | 1,286 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/WeiboResponse.java | Java | asf20 | 8,202 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/Weibo.java | Java | asf20 | 60,114 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/Configuration.java | Java | asf20 | 10,823 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/User.java | Java | asf20 | 22,419 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/Trends.java | Java | asf20 | 5,799 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/Status.java | Java | asf20 | 11,959 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/IDs.java | Java | asf20 | 4,386 |
package com.ch_linghu.fanfoudroid.fanfou;
/**
* An exception class that will be thrown when WeiboAPI calls are failed.<br>
* In case the Fanfou server returned HTTP error code, you can get the HTTP
* status code using getStatusCode() method.
*/
public class WeiboException extends Exception {
private int statusCod... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/WeiboException.java | Java | asf20 | 887 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/RetweetDetails.java | Java | asf20 | 5,531 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/RefuseError.java | Java | asf20 | 4,216 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/RateLimitStatus.java | Java | asf20 | 3,814 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/DirectMessage.java | Java | asf20 | 6,727 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/Paging.java | Java | asf20 | 3,505 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/fanfou/SavedSearch.java | Java | asf20 | 4,541 |
package com.ch_linghu.fanfoudroid.data2;
public class Photo {
private String thumburl;
private String imageurl;
private String largeurl;
public Photo() {
}
public String getThumburl() {
return thumburl;
}
public void setThumburl(String thumburl) {
this.thumburl = thumburl;
}
public String getImageurl... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/data2/Photo.java | Java | asf20 | 702 |
package com.ch_linghu.fanfoudroid.data2;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
public class DataUtils {
static SimpleDateFormat sdf = new SimpleDateFormat(
"EEE MMM dd HH:mm:ss z yyyy", Locale.US);
public st... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/data2/DataUtils.java | Java | asf20 | 531 |
package com.ch_linghu.fanfoudroid.data2;
import java.util.Date;
public class User {
private String id;
private String name;
private String screen_name;
private String location;
private String desription;
private String profile_image_url;
private String url;
private boolean isProtected;
private int friends_co... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/data2/User.java | Java | asf20 | 3,686 |
package com.ch_linghu.fanfoudroid.data2;
import java.util.Date;
public class Status {
private Date created_at;
private String id;
private String text;
private String source;
private boolean truncated;
private String in_reply_to_status_id;
private String in_reply_to_user_id;
private boolean favorited;
privat... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/data2/Status.java | Java | asf20 | 3,510 |
package com.ch_linghu.fanfoudroid.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Database Helper
*
* @see SQLiteDatabase
*/
public ... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/dao/SQLiteTemplate.java | Java | asf20 | 4,913 |
package com.ch_linghu.fanfoudroid.dao;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.text.TextUtils;
import android.util.Log;
import com.ch_linghu.fanfoudroid.dao.SQLiteTemplat... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/dao/StatusDAO.java | Java | asf20 | 9,581 |
package com.ch_linghu.fanfoudroid.db2;
import java.util.ArrayList;
import java.util.Arrays;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
/**
* Wrapper of SQliteDatabse#query, OOP style.
*
* Usage: -------------------... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/db2/Query.java | Java | asf20 | 7,915 |
package com.ch_linghu.fanfoudroid.db2;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import com.ch_linghu.fanfoudroid.db2.FanContent.*;
public class FanDatabase {
private ... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/db2/FanDatabase.java | Java | asf20 | 3,309 |
package com.ch_linghu.fanfoudroid.db2;
import java.util.zip.CheckedOutputStream;
import android.R.color;
public abstract class FanContent {
/**
* 消息表 消息表存放消息本身
*
* @author phoenix
*
*/
public static class StatusesTable {
public static final String TABLE_NAME = "t_statuses";
public static class Co... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/db2/FanContent.java | Java | asf20 | 11,166 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/WriteActivity.java | Java | asf20 | 24,239 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import and... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/FanfouWidget.java | Java | asf20 | 8,139 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/base/TwitterListBaseActivity.java | Java | asf20 | 9,965 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.ListActivity;
/**
* TODO: 准备重构现有的几个ListActivity
*
* 目前几个ListActivity存在的问题是 : 1. 因为要实现[刷新]这些功能, 父类设定了子类继承时必须要实现的方法,
* 而刷新/获取其实更多的时候可以理解成是ListView的层面, 这在于讨论到底是一个"可刷新的Activity"
* 还是一个拥有"可刷新的ListView"的Activity, 如果改成后者, 则只要在父类拥有一个实现了可刷新接口的ListView即可,
* 而... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/base/BaseListActivity.java | Java | asf20 | 1,225 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.SharedPreferences;
import and... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/base/BaseActivity.java | Java | asf20 | 9,412 |
package com.ch_linghu.fanfoudroid.ui.base;
public interface Refreshable {
void doRetrieve();
}
| 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/base/Refreshable.java | Java | asf20 | 97 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.BitmapDrawable;
import android.text.TextPaint;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
im... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/base/WithHeaderActivity.java | Java | asf20 | 8,671 |
package com.ch_linghu.fanfoudroid.ui.base;
import java.util.ArrayList;
import java.util.List;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.ch_linghu.fanfoudroid.R;... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/base/UserArrayBaseActivity.java | Java | asf20 | 9,000 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/base/UserCursorBaseActivity.java | Java | asf20 | 16,453 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.ContextMenu;
import andro... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/base/UserListBaseActivity.java | Java | asf20 | 14,619 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/base/TwitterCursorBaseActivity.java | Java | asf20 | 22,940 |
package com.ch_linghu.fanfoudroid.ui.module;
import com.ch_linghu.fanfoudroid.R;
import android.app.Activity;
import android.util.Log;
import android.view.GestureDetector;
import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.O... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/FlingGestureListener.java | Java | asf20 | 4,028 |
/**
*
*/
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/UserCursorAdapter.java | Java | asf20 | 3,612 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.R;
public class SimpleFeedback implemen... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/SimpleFeedback.java | Java | asf20 | 2,632 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Gravity;
import android.widget.ImageView;
import android.widget.Toast;
import android.widget.ViewSwitcher.ViewFactory... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/ActivityFlipper.java | Java | asf20 | 6,954 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;
public interface Widget {
Context getContext();
// TEMP
public static interface OnGestureListener {
/**
* @param e1
* The fi... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/Widget.java | Java | asf20 | 1,270 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.text.Layout;
import android.text.Spannable;
import android.text.Spanned;
import android.text.style.Foregrou... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/MyTextView.java | Java | asf20 | 3,502 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/MenuDialog.java | Java | asf20 | 6,622 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.util.Log;
public class FeedbackFactory {
private static final String TAG = "FeedbackFactory";
public static enum FeedbackType {
DIALOG, PROGRESS, REFRESH
};
public static Feedback create(Context context, FeedbackType t... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/FeedbackFactory.java | Java | asf20 | 1,165 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.app.Activity;
import android.view.MotionEvent;
import com.ch_linghu.fanfoudroid.BrowseActivity;
import com.ch_linghu.fanfoudroid.MentionActivity;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterActivity;
/**
* MyActivityFlipper ... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/MyActivityFlipper.java | Java | asf20 | 1,958 |
/**
*
*/
package com.ch_linghu.fanfoudroid.ui.module;
import java.text.ParseException;
import java.util.Date;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import ... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/TweetCursorAdapter.java | Java | asf20 | 6,786 |
package com.ch_linghu.fanfoudroid.ui.module;
public interface Feedback {
public boolean isAvailable();
public void start(CharSequence text);
public void cancel(CharSequence text);
public void success(CharSequence text);
public void failed(CharSequence text);
public void update(Object arg0);
public void se... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/Feedback.java | Java | asf20 | 361 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphic... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/UserArrayAdapter.java | Java | asf20 | 9,914 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.graphics.Color;
import android.text.Editable;
import android.text.InputFilter;
import android.text.Selection;
import android.text.TextWatcher;
import android.view.View.OnKeyListener;
import android.widget.EditText;
import android.widget.TextView;
... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/TweetEdit.java | Java | asf20 | 2,457 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
impor... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/TweetArrayAdapter.java | Java | asf20 | 5,626 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.AbsListView;
import android.widget.ListView;
public class MyListView extends ListView implements ListView.OnScrollListener {
private int mSc... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/MyListView.java | Java | asf20 | 1,552 |
package com.ch_linghu.fanfoudroid.ui.module;
public interface IFlipper {
void showNext();
void showPrevious();
}
| 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/IFlipper.java | Java | asf20 | 117 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.text.TextPaint;
import android.util.Log;
import android.view.View;
import android.view.animation.Animation;
import ... | 061304011116lyj-lyj | src/com/ch_linghu/fanfoudroid/ui/module/NavBar.java | Java | asf20 | 8,578 |