code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
/**
* Smarty Internal Plugin Compile If
*
* Compiles the {if} {else} {elseif} {/if} tags
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile If Class
*/
class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase {
/**
* Compiles co... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_if.php | PHP | asf20 | 8,471 |
<?php
/**
* Smarty Internal Plugin Compile Registered Block
*
* Compiles code for the execution of a registered block function
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Registered Block Class
*/
class Smarty_Internal_Compile_Private... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_private_registered_block.php | PHP | asf20 | 5,009 |
<?php
/**
* Smarty Internal Plugin Compile Foreach
*
* Compiles the {foreach} {foreachelse} {/foreach} tags
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Foreach Class
*/
class Smarty_Internal_Compile_Foreach extends Smarty_Internal_CompileBase {
//... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_foreach.php | PHP | asf20 | 9,137 |
<?php
/**
* Smarty Internal Plugin Resource File
*
* Implements the file system as resource for Smarty templates
*
* @package Smarty
* @subpackage TemplateResources
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Resource File
*/
class Smarty_Internal_Resource_File {
public function __construct($... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_resource_file.php | PHP | asf20 | 3,852 |
<?php
/**
* Smarty Internal Plugin Resource PHP
*
* Implements the file system as resource for PHP templates
*
* @package Smarty
* @subpackage TemplateResources
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Resource PHP
*/
class Smarty_Internal_Resource_PHP {
/**
* Class constructor, enable... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_resource_php.php | PHP | asf20 | 3,506 |
<?php
/**
* Smarty Internal Plugin Compile Include PHP
*
* Compiles the {include_php} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Insert Class
*/
class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase {
// attribute def... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_include_php.php | PHP | asf20 | 2,979 |
<?php
/**
* Smarty Internal Plugin Configfileparser
*
* This is the config file parser.
* It is generated from the internal.configfileparser.y file
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
class TPC_yyToken implements ArrayAccess
{
public $string = '';
public $metadata = array();
fun... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_configfileparser.php | PHP | asf20 | 32,674 |
<?php
/**
* Smarty Internal Plugin Resource Registered
*
* Implements the registered resource for Smarty template
*
* @package Smarty
* @subpackage TemplateResources
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Resource Registered
*/
class Smarty_Internal_Resource_Registered {
public function ... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_resource_registered.php | PHP | asf20 | 4,845 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage Security
* @author Uwe Tews
*/
/**
* This class does contain the security settings
*/
class Smarty_Security {
/**
* This determines how Smarty handles "<?php ... ?>" tags in templates.
* possible values:
* <ul>
* <li>Smart... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_security.php | PHP | asf20 | 7,140 |
<?php
/**
* Smarty Internal Plugin CompileBase
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* This class does extend all internal compile plugins
*/
// abstract class Smarty_Internal_CompileBase implements TagCompilerInterface
class Smarty_Internal_CompileBase {
public $required_att... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compilebase.php | PHP | asf20 | 5,922 |
<?php
/**
* Smarty Internal Plugin Compile Insert
*
* Compiles the {insert} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Insert Class
*/
class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase {
// attribute definitions
pu... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_insert.php | PHP | asf20 | 5,020 |
<?php
/**
* Smarty Internal Plugin Compile Break
*
* Compiles the {break} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Break Class
*/
class Smarty_Internal_Compile_Break extends Smarty_Internal_CompileBase {
// attribute definiti... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_break.php | PHP | asf20 | 2,137 |
<?php
/**
* Smarty Internal Plugin Compile Object Block Function
*
* Compiles code for registered objects as block function
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Object Block Function Class
*/
class Smarty_Internal_Compile_Private_Object_Bloc... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_private_object_block_function.php | PHP | asf20 | 3,562 |
<?php
/**
* Smarty Internal Plugin Register
*
* External Smarty methods register/unregister
*
* @package Smarty
* @author Uwe Tews
*/
/**
* Class for register/unregister methods
*/
class Smarty_Internal_Register {
function __construct($smarty)
{
$this->smarty = $smarty;
}
/**
... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_register.php | PHP | asf20 | 5,140 |
<?php
/**
* Smarty Internal Plugin Compile Function_Call
*
* Compiles the calls of user defined tags defined by {function}
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Function_Call Class
*/
class Smarty_Internal_Compile_Call extends Smarty_Interna... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_call.php | PHP | asf20 | 4,213 |
<?php
/**
* Smarty Internal Plugin Compile Assign
*
* Compiles the {assign} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Assign Class
*/
class Smarty_Internal_Compile_Assign extends Smarty_Internal_CompileBase {
/**
* Compiles code for... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_assign.php | PHP | asf20 | 2,424 |
<?php
/**
* Smarty Internal Plugin Compile While
*
* Compiles the {while} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile While Class
*/
class Smarty_Internal_Compile_While extends Smarty_Internal_CompileBase {
/**
* Compiles code for the {while} tag... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_while.php | PHP | asf20 | 3,402 |
<?php
/**
* Smarty Internal Plugin Compile extend
*
* Compiles the {extends} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile extend Class
*/
class Smarty_Internal_Compile_Extends extends Smarty_Internal_CompileBase {
// attribute definitions
... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_extends.php | PHP | asf20 | 4,005 |
<?php
/**
* Smarty Internal Plugin Templatelexer
*
* This is the lexer to break the template source into tokens
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Templatelexer
*/
class Smarty_Internal_Templatelexer
{
public $data;
public $counter;
public $token;
... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_templatelexer.php | PHP | asf20 | 36,196 |
<?php
/**
* Project: Smarty: the PHP compiling template engine
* File: smarty_internal_wrapper.php
* SVN: $Id: $
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundati... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_wrapper.php | PHP | asf20 | 5,254 |
<?php
/**
* Smarty Internal Plugin Config
*
* Main class for config variables
*
* @ignore
* @package Smarty
* @subpackage Config
* @author Uwe Tews
*/
class Smarty_Internal_Config {
static $config_objects = array();
public function __construct($config_resource, $smarty, $data = null)
{
... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_config.php | PHP | asf20 | 10,510 |
<?php
/**
* Smarty Internal Plugin Compile Append
*
* Compiles the {append} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Append Class
*/
class Smarty_Internal_Compile_Append extends Smarty_Internal_Compile_Assign {
// attribute definitions
... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_compile_append.php | PHP | asf20 | 1,466 |
<?php
/**
* Smarty Internal Plugin Nocache Insert
*
* Compiles the {insert} tag into the cache file
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Insert Class
*/
class Smarty_Internal_Nocache_Insert {
/**
* Compiles code fo... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/smarty/sysplugins/smarty_internal_nocache_insert.php | PHP | asf20 | 1,627 |
<?php
/**
* Description of Util
*
* @author Magno
*/
class Util {
public static function searchPosWordInBlankSpace($string){
for ($i = 0; $i < strlen($string); $i++) {
if(strcmp($string, " ") != 0)
return $i;
}
return -1;
}
public static function isT... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/Util.class.php | PHP | asf20 | 2,566 |
<?php
/**
* Description of Constantes
*
* @author Magno
*/
class Constantes {
public static $URL_CRIPTOGRAFADA = false;
public static $RES_WORDS_COLUMNS = array("PRIMARY KEY","INDEX","UNIQUE","CONSTRAINT");
public static $PRIMARY_KEY = "PRIMARY KEY";
public static $INDEX = "INDEX";
public... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/Constantes.class.php | PHP | asf20 | 6,690 |
<?php
$dirBase = 'temp_gen';
// the name of your zip archive to be created
$zipfile = $dirBase."/".$name.'.zip';
// DO NOT TOUCH BELOW IF YOU DONT KNOW WHAT IT IS
// all the process below
$filenames = array();
// function that browse the directory and all subdirectories inside
function browse($dir) {
global $fil... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/php/compactador.php | PHP | asf20 | 1,360 |
/**
* Styles for tables and grid view
*/
.table, .with-head {
margin-bottom: 1.667em;
border: 1px solid #999999;
}
.table {
border-collapse: separate;
}
.table:last-child,
.with-head:last-child {
margin-bottom: 0;
}
/* IE class */
.table.last-child,
.with-head.last-child {
margin-... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/css/table.css | CSS | asf20 | 8,175 |
/* Custom styles for the special pages */
html {
height: 100%;
}
.login-bg,
.wizard-bg {
background: url(../images/bg.png) no-repeat center -200px;
min-height: 100%;
}
.error-bg,
.code-page {
background: url(../images/old-browsers-bg/login-radial-bg.png) no-repeat center center;
-webkit-background-si... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/css/special-pages.css | CSS | asf20 | 5,471 |
<?php
/**
* Simple script to combine and compress CSS files, to reduce the number of file request the server has to handle.
* For more options/flexibility, see Minify : http://code.google.com/p/minify/
*/
// If no file requested
if (!isset($_GET['files']) or strlen($_GET['files']) == 0)
{
header('Status: ... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/css/mini.php | PHP | asf20 | 2,043 |
/**
* Styles for the standard template
*/
html {
min-height: 100%;
overflow-x: hidden;
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
background: url(../images/bg.png) no-repeat center top;
min-height: 100%;
}
textarea, input {
font-family: Verdana, Arial, Helvetica, sans-serif;
}
... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/css/standard.css | CSS | asf20 | 56,622 |
/*
* Global reset
* Based on Eric Meyer's : http://meyerweb.com/eric/thoughts/2008/01/15/resetting-again/
*/
a, abbr, acronym, address, applet, article, aside, audio,
b, big, blockquote, body,
canvas, caption, center, cite, code, command,
datalist, dd, del, details, dfn, div, dl, dt,
em, embed,
fieldset, ... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/css/reset.css | CSS | asf20 | 1,467 |
/**
* Common styles for all variants (standard or mobile)
* z-index hierachy :
* 88, 89 or 90 : Positioned elements at normal level
* 98 or 99 : Positioned for menu
* 100 : footer
* 999900 : tooltip
* 999910 : menu
* 999950 : fixed control bar
* 999980 : modal windows
* 999990 : notifications
*/
... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/css/common.css | CSS | asf20 | 61,487 |
/**
* Wizard styles
*/
.wizard-steps {
height: 6em;
line-height: 5.5em;
border: 1px solid #b5b3b4;
border-width: 1px 0;
border-top: 1px solid #9bd2ee;
background: #0c5fa3 url(../images/old-browsers-bg/block-header-bg.png) repeat-x top;
-webkit-background-size: 100% 100%;
-moz-background-size: 100... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/css/wizard.css | CSS | asf20 | 4,541 |
/************** Forms & pseudo-form **************/
.form fieldset,
.fieldset {
border: 1px solid #d9d9d9;
padding: 1em 1.667em 1.667em 1.667em;
-moz-border-radius: 0.25em;
-webkit-border-radius: 0.25em;
-webkit-background-clip: padding-box;
border-radius: 0.25em;
margin-bottom: 1.667em;
}
/* IE cla... | 0a1b2c3d4e5 | trunk/BloumGenerator/include/css/form.css | CSS | asf20 | 13,524 |
<?php
set_time_limit(0);
/**
* Description of GenerateAction
*
* @author Magno
*/
class GeneratorAction extends BaseAction{
public static $VIEW_GENERATOR = 'view/steps/';
public function GeneratorAction(){
parent::__construct();
}
public function getView(){
return GeneratorActio... | 0a1b2c3d4e5 | trunk/BloumGenerator/action/GeneratorAction.class.php | PHP | asf20 | 16,817 |
<?php
/**
* Description of SystemAction
*
* Classe Principal das Actions :
*
* Quebra a url, montando a classe action passada e seu metodo
* e depois o executa
* Tambem separa a string com os parametros
*
* @author Magno
*/
class SystemAction {
private $url;
private $actionClass;
private $action... | 0a1b2c3d4e5 | trunk/BloumGenerator/action/SystemAction.class.php | PHP | asf20 | 6,496 |
<?php
#define('SMARTY_SPL_AUTOLOAD',1);
require dirname(__FILE__).'/../include/php/smarty/Smarty.class.php';
/**
* Description of BaseAction
*
* Classe Base para as outras Actions que fore existir
*
* @author Magno
*/
class BaseAction {
private $input;
private $output;
private... | 0a1b2c3d4e5 | trunk/BloumGenerator/action/BaseAction.class.php | PHP | asf20 | 10,213 |
<?php
/**
* Description of TabelaMeta
*
* @author Magno
*/
class TableMeta {
private $name;
private $attributes;
private $FKReferences;
private $FKReferenciadas;
private $crud;
function __construct($name = "", $attributes = null, $FKReferences = null, $FKReferenciadas = null, $crud... | 0a1b2c3d4e5 | trunk/BloumGenerator/meta/TableMeta.class.php | PHP | asf20 | 1,693 |
<?php
/**
* Description of AtributoMeta
*
* @author Magno
*/
class AttributeMeta {
private $name;
private $type;
private $notNull;
private $primaryKey;
private $foreignKey;
private $default;
private $important;
private $comboDisplay;
function __construct($name, $type, $... | 0a1b2c3d4e5 | trunk/BloumGenerator/meta/AttributeMeta.class.php | PHP | asf20 | 2,376 |
<?php
/**
* Description of FKReferenceMeta
*
* @author Magno
*/
class FKReferenceMeta {
private $name;
private $attributes;
private $tableFK;
private $tableReference;
private $references;
private $cardinality;
private $sideObject;
private $extends;
private $typeForm;
functi... | 0a1b2c3d4e5 | trunk/BloumGenerator/meta/FKReferenceMeta.class.php | PHP | asf20 | 2,340 |
<?php
?>
| 0a1b2c3d4e5 | trunk/BloumGenerator/index.php | PHP | asf20 | 13 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/PreferencesActivity.java | Java | asf20 | 3,039 |
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 ... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/app/MemoryImageCache.java | Java | asf20 | 831 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/app/Preferences.java | Java | asf20 | 2,782 |
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-aa | src/com/ch_linghu/fanfoudroid/app/TestMovementMethod.java | Java | asf20 | 1,336 |
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-aa | src/com/ch_linghu/fanfoudroid/app/ExceptionHandler.java | Java | asf20 | 2,064 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/app/ImageManager.java | Java | asf20 | 16,006 |
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 i... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/app/SimpleImageLoader.java | Java | asf20 | 912 |
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-aa | src/com/ch_linghu/fanfoudroid/app/LazyImageLoader.java | Java | asf20 | 6,721 |
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().getDraw... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/app/ImageCache.java | Java | asf20 | 443 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/data/Tweet.java | Java | asf20 | 6,410 |
package com.ch_linghu.fanfoudroid.data;
import android.database.Cursor;
public interface BaseContent {
long insert();
int delete();
int update();
Cursor select();
}
| 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/data/BaseContent.java | Java | asf20 | 184 |
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... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/data/Dm.java | Java | asf20 | 884 |
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-aa | src/com/ch_linghu/fanfoudroid/data/User.java | Java | asf20 | 2,793 |
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 St... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/data/Message.java | Java | asf20 | 517 |
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-aa | src/com/ch_linghu/fanfoudroid/FanfouWidget.java | Java | asf20 | 8,105 |
package com.ch_linghu.fanfoudroid;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.B... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/DmActivity.java | Java | asf20 | 17,720 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/FavoritesActivity.java | Java | asf20 | 4,543 |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Adapte... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/FollowingActivity.java | Java | asf20 | 3,315 |
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-aa | src/com/ch_linghu/fanfoudroid/ProfileActivity.java | Java | asf20 | 24,896 |
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-aa | src/com/ch_linghu/fanfoudroid/dao/StatusDAO.java | Java | asf20 | 11,168 |
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-aa | src/com/ch_linghu/fanfoudroid/dao/SQLiteTemplate.java | Java | asf20 | 5,766 |
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 {
priva... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/db2/FanDatabase.java | Java | asf20 | 3,885 |
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"... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/db2/FanContent.java | Java | asf20 | 13,587 |
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-aa | src/com/ch_linghu/fanfoudroid/db2/Query.java | Java | asf20 | 9,118 |
package com.ch_linghu.fanfoudroid.http;
import java.util.HashMap;
import java.util.Map;
public class HTMLEntity {
public static String escape(String original) {
StringBuffer buf = new StringBuffer(original);
escape(buf);
return buf.toString();
}
public static void escape(StringBuf... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/http/HTMLEntity.java | Java | asf20 | 26,524 |
package com.ch_linghu.fanfoudroid.http;
/**
* HTTP StatusCode is not 200
*/
public class HttpException extends Exception {
private int statusCode = -1;
public HttpException(String msg) {
super(msg);
}
public HttpException(Exception cause) {
super(cause);
}
public HttpE... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/http/HttpException.java | Java | asf20 | 741 |
package com.ch_linghu.fanfoudroid.http;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/http/Response.java | Java | asf20 | 6,106 |
package com.ch_linghu.fanfoudroid.http;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.zip.GZIPInputStream;
impor... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/http/HttpClient.java | Java | asf20 | 28,093 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/ui/base/TwitterCursorBaseActivity.java | Java | asf20 | 22,549 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/ui/base/UserCursorBaseActivity.java | Java | asf20 | 19,270 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/ui/base/TwitterListBaseActivity.java | Java | asf20 | 9,533 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.ListActivity;
/**
* TODO: 准备重构现有的几个ListActivity
*
* 目前几个ListActivity存在的问题是 :
* 1. 因为要实现[刷新]这些功能, 父类设定了子类继承时必须要实现的方法,
* 而刷新/获取其实更多的时候可以理解成是ListView的层面, 这在于讨论到底是一个"可刷新的Activity"
* 还是一个拥有"可刷新的ListView"的Activity, 如果改成后者, 则只要在父类拥有一个实现了可刷新接口的ListVi... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/ui/base/BaseListActivity.java | Java | asf20 | 1,243 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/base/BaseActivity.java | Java | asf20 | 10,752 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/base/WithHeaderActivity.java | Java | asf20 | 8,811 |
package com.ch_linghu.fanfoudroid.ui.base;
public interface Refreshable {
void doRetrieve();
}
| 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/ui/base/Refreshable.java | Java | asf20 | 97 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/base/UserListBaseActivity.java | Java | asf20 | 17,159 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/base/UserArrayBaseActivity.java | Java | asf20 | 9,608 |
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.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
impo... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/ui/module/TweetArrayAdapter.java | Java | asf20 | 4,073 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.widget.ListAdapter;
public interface TweetAdapter extends ListAdapter{
void refresh();
}
| 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/ui/module/TweetAdapter.java | Java | asf20 | 152 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/module/MyActivityFlipper.java | Java | asf20 | 2,183 |
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 mS... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/ui/module/MyListView.java | Java | asf20 | 1,620 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/module/MyTextView.java | Java | asf20 | 4,155 |
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(Conte... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/ui/module/FeedbackFactory.java | Java | asf20 | 1,347 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/module/SimpleFeedback.java | Java | asf20 | 3,029 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/module/UserArrayAdapter.java | Java | asf20 | 9,395 |
package com.ch_linghu.fanfoudroid.ui.module;
public interface IFlipper {
void showNext();
void showPrevious();
}
| 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/ui/module/IFlipper.java | Java | asf20 | 122 |
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
... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/ui/module/Widget.java | Java | asf20 | 1,456 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/module/NavBar.java | Java | asf20 | 10,493 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/module/ActivityFlipper.java | Java | asf20 | 7,900 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/ui/module/MenuDialog.java | Java | asf20 | 6,885 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/module/TweetEdit.java | Java | asf20 | 2,607 |
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);
... | 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/ui/module/Feedback.java | Java | asf20 | 377 |
/**
*
*/
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-aa | src/com/ch_linghu/fanfoudroid/ui/module/UserCursorAdapter.java | Java | asf20 | 3,566 |
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-aa | src/com/ch_linghu/fanfoudroid/ui/module/FlingGestureListener.java | Java | asf20 | 4,636 |
/**
*
*/
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-aa | src/com/ch_linghu/fanfoudroid/ui/module/TweetCursorAdapter.java | Java | asf20 | 5,303 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/service/BootReceiver.java | Java | asf20 | 1,245 |
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-aa | src/com/ch_linghu/fanfoudroid/service/LocationService.java | Java | asf20 | 3,675 |
package com.ch_linghu.fanfoudroid.service;
public interface IService {
void startService();
void stopService();
}
| 061304011116lyj-aa | src/com/ch_linghu/fanfoudroid/service/IService.java | Java | asf20 | 123 |
/*
* 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-aa | src/com/ch_linghu/fanfoudroid/service/TwitterService.java | Java | asf20 | 19,229 |