text
stringlengths
3
1.18M
package com.Food; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import android.util.Log; public class DBConnection { private static String driver = "net.sourceforge.jtds.jdbc.Driver"; private static fin...
package com.Food; /* The following code was written by Matthew Wiggins * and is released under the APACHE 2.0 license * * http://www.apache.org/licenses/LICENSE-2.0 */ import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware...
package com.Food; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class DBAdapter { p...
package com.Food; import java.io.Console; import java.util.ArrayList; import java.util.List; import java.util.Random; import android.R.string; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawab...
package com.Food; import java.sql.Connection; import java.sql.Statement; import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; imp...
package edu.gatech.cs3240.project1; /** * Abstract implementation of the FiniteStateAutomaton interface. * This class may only be instantiated through concrete subclasses. * @author William Dye */ public abstract class FiniteStateAutomatonImpl implements FiniteStateAutomaton { private String identifier; p...
package edu.gatech.cs3240.project1; import java.io.File; /** * Implementation of the Tokenizer interface. * @author William Dye */ public class TokenizerImpl implements Tokenizer { protected CharBuffer buffer; protected Token current; protected boolean paused; /** * Constructs a <code>Tokeni...
package edu.gatech.cs3240.project1; /** * Represents a token found in a source file. * @author William Dye */ public class SourceToken { private String type, string; /** * Creates a new <code>SourceToken</code> with the specified type and string. * @param tokenType the type of the token * @...
package edu.gatech.cs3240.project1; import java.util.*; /** * Contains a class method to convert an NFA to an equivalent DFA. * @author William Dye * @author TJ Harrison * @author Taylor Holden */ public class NFAToDFAConverter { private NFAToDFAConverter() { /* prevent instantiation */ } ...
package edu.gatech.cs3240.project1; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.Set; /** * Implementation of the NFA interface. * @author William Dye * @author TJ Harrison */ public class NFAImpl extends FiniteStateAutomatonImpl implements NFA { /** The epsilon (null) cha...
package edu.gatech.cs3240.project1; import java.util.Set; import java.util.LinkedHashMap; import java.util.LinkedHashSet; /** * Implementation of the DFA interface. * @author William Dye * @author TJ Harrison * @author Taylor Holden * @author Ryan McCaffrey */ public class DFAImpl extends FiniteStateAutomatonIm...
package edu.gatech.cs3240.project1; /** * Represents a deterministic finite-state automaton. * @author TJ Harrison */ public interface DFA extends FiniteStateAutomaton { /** * A DFA's transition function. Given a state <code>from</code> * and a character <code>c</code>, returns the state to which *...
package edu.gatech.cs3240.project1; /** * The table walker program. Reads an input file * and generates tokens using a supplied DFA table. * @author William Dye */ public interface TableWalker { /** * Returns <code>true</code> until the table walker reaches end of file (EOF). * @return <code>true</c...
package edu.gatech.cs3240.project1; import java.util.Set; /** * Represents a generic state in a finite-state automaton. * @author William Dye */ public interface State { /** * Returns <code>true</code> if a state is an accepting (final) state. * @return <code>true</code> if the state is accepting, <...
package edu.gatech.cs3240.project1; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.Set; import java.util.Stack; import java.text.ParseException; /** * Implementation of the RecursiveDescentParser interface. * @author William Dye */ public class RecursiveDescentParserImpl implements Rec...
package edu.gatech.cs3240.project1; import java.text.ParseException; /** * Represents a recursive-descent parser. * Uses a tokenizer to parse a regular expression with a recursive-descent approach. * @author William Dye */ public interface RecursiveDescentParser { /** * Parses a regular expression and r...
package edu.gatech.cs3240.project1; import java.io.File; import java.text.ParseException; import java.util.*; /** * The driver for the scanner generator. * Opens a file (named in <code>args[0]</code>) containing a lexical specification, * then parses the file and generates an NFA representing the specified languag...
package edu.gatech.cs3240.project1; import java.util.Set; /** * Represents a generic finite-state automaton. * This interface defines the methods that all NFAs and DFAs must implement. * @author William Dye * @author TJ Harrison * @author Matt Hooper */ public interface FiniteStateAutomaton { /** * Ac...
package edu.gatech.cs3240.project1; /** * Represents a token read from a lexical specification. * Has a type and (usually) a string value. * @author William Dye */ public interface Token { /** * Accessor for a token's type. * @return the type of the token */ public TokenType getTokenType(); ...
package edu.gatech.cs3240.project1; /** * Represents the valid types of tokens that may appear in a lexical specification. * @author William Dye */ public enum TokenType { /** A comment in the spec file (line beginning with "<code>%%</code>") */ COMMENT, /** An identifier of a character class or regular...
package edu.gatech.cs3240.project1; import java.util.Set; /** * Represents a non-deterministic finite-state automaton. * @author William Dye */ public interface NFA extends FiniteStateAutomaton { /** * An NFA's transition function. Given a state <code>from</code> * and a character <code>c</code>, re...
package edu.gatech.cs3240.project1; /** * Implementation of the Token interface. * @author William Dye */ public class TokenImpl implements Token { private TokenType type; private String string; /** * Default constructor. Creates a <code>TokenImpl</code> with <code>null</code> type and value. */ ...
package edu.gatech.cs3240.project1; /** * Represents a tokenizer, which scans a file and returns tokens upon request. * @author William Dye */ public interface Tokenizer { /** * Consumes and returns the next token. * @return the next token in the stream */ public Token getNextToken(); /...
package edu.gatech.cs3240.project1; import java.io.File; import java.util.Map; import java.util.Set; /** * Implementation of the TableWalker interface. * @author William Dye * @author Taylor Holden * @author Matt Hooper */ public class TableWalkerImpl implements TableWalker { protected DFA dfa; protected Ch...
package edu.gatech.cs3240.project1; import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; /** * A helper class for reading a file one character at a time. * @author William Dye */ public class CharBuffer { protected int index, line; private boolean prev; private String c...
package edu.gatech.cs3240.project2; import java.util.List; /** * Represents a string along with it's given Metadata for each file. * @author TJ Harrison */ public interface MiniREString { /** * Accessor for an MiniREString's string. * @return the string represented by this MiniREString ...
package edu.gatech.cs3240.project2; import java.io.File; import java.text.ParseException; /** * The driver for the MiniRE interpreter. * @author William Dye */ public class Interpreter { /** * The entry point for the program. * @param args the name of the file containing the MiniRE script to interpr...
package edu.gatech.cs3240.project2; /** * Represents a node in an abstract syntax tree. * @author William Dye */ public interface ASTNode { /** * Accessor for an AST node's type. * @return the type of the node */ public ASTNodeType getNodeType(); /** * Accessor for the type of the ...
package edu.gatech.cs3240.project2; /** * Implementation of the ASTNode interface. * @author William Dye */ public class ASTNodeImpl implements ASTNode { protected ASTNodeType type; protected MiniRETokenType tokenType; protected String tokenString; protected ASTNode next; protected ASTNode chil...
package edu.gatech.cs3240.project2; import java.text.ParseException; /** * Represents a recursive-descent parser for the MiniRE scripting language. * @author William Dye */ public interface MiniREParser { /** * Parses a MiniRE script and returns an AST that describes that script. * @return an AST de...
package edu.gatech.cs3240.project2; /** * Represents an abstract syntax tree. * @author William Dye */ public interface AST { /** * Accessor for an AST's starting node. * @return the AST's start node */ public ASTNode getStartNode(); /** * Mutator for an AST's starting node. *...
package edu.gatech.cs3240.project2; import java.text.ParseException; /** * Implementation of the MiniREParser interface. * @author William Dye */ public class MiniREParserImpl implements MiniREParser { protected MiniRETokenizer tokenizer; protected AST ast; protected ASTNode current; protected Min...
package edu.gatech.cs3240.project2; import java.util.List; import java.util.Set; /** * Represents a list of indices in a certain file that pertain to a certain string. * @author TJ Harrison */ public interface Metadata { /** * Adds a given index to the list of indices. * @param line the line n...
package edu.gatech.cs3240.project2; import java.util.ArrayList; import java.util.List; /** * Implementation of the MiniREString interface. * @author TJ Harrison */ public class MiniREStringImpl implements MiniREString { private String string; private ArrayList<Metadata> meta; /** * Co...
package edu.gatech.cs3240.project2; /** * Represents the valid types of tokens that may appear in a MiniRE script. * This enumeration is essentially a superset of the token types defined in edu.gatech.cs3240.project1.TokenType. * @author William Dye * @see edu.gatech.cs3240.project1.TokenType */ public enum MiniR...
package edu.gatech.cs3240.project2; import java.io.File; import edu.gatech.cs3240.project1.DFA; import edu.gatech.cs3240.project1.SourceToken; import edu.gatech.cs3240.project1.State; import edu.gatech.cs3240.project1.TableWalkerImpl; /** * MiniRE-specific implementation of the <code>TableWalker</code> in...
package edu.gatech.cs3240.project2; import edu.gatech.cs3240.project1.TokenImpl; import edu.gatech.cs3240.project1.TokenType; /** * Implementation of the MiniREToken interface. * @author William Dye */ public class MiniRETokenImpl extends TokenImpl implements MiniREToken { private MiniRETokenType type; /...
package edu.gatech.cs3240.project2; import edu.gatech.cs3240.project1.Token; /** * Represents a token read from a MiniRE script. * Has a type and (usually) a string value. * @author William Dye */ public interface MiniREToken extends Token { /** * Accessor for a MiniRE token's type. * @return the t...
package edu.gatech.cs3240.project2; import java.io.File; import edu.gatech.cs3240.project1.Token; import edu.gatech.cs3240.project1.Tokenizer; import edu.gatech.cs3240.project1.TokenizerImpl; import static edu.gatech.cs3240.project1.RecursiveDescentParserImpl.ASCII_MIN; import static edu.gatech.cs3240.project1.Recur...
package edu.gatech.cs3240.project2; import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; /** * Implementation of the Metadata interface. * @author TJ Harrison */ public class MetadataImpl implements Metadata { private String filename; private L...
package edu.gatech.cs3240.project2; /** * An enumeration of the valid types of nodes in an AST. */ public enum ASTNodeType { /** A "begin" node (the start of a MiniRE script). Has no children. */ BEGIN, /** An "end" node (the end of a MiniRE script). Has no children. */ END, /** An assignment nod...
package edu.gatech.cs3240.project2; import java.util.LinkedHashSet; import java.util.Set; /** * Implementation of the AST interface. * @author William Dye */ public class ASTImpl implements AST { protected ASTNode start; protected Set<ASTNode> nodes; /** * Creates an <code>ASTImpl</code> with no...
package edu.gatech.cs3240.project2; import java.io.File; import edu.gatech.cs3240.project1.DFA; import edu.gatech.cs3240.project1.SourceToken; import edu.gatech.cs3240.project1.State; import edu.gatech.cs3240.project1.TableWalkerImpl; /** * MiniRE-specific implementation of the <code>TableWalker</code> in...
package edu.gatech.cs3240.project2; import java.text.ParseException; import java.util.*; import java.io.*; import edu.gatech.cs3240.project1.*; /** * Evaluates ASTs by performing the operations specified by the trees' nodes. * @author William Dye * @author TJ Harrison * @author Taylor Holden * @author Matthew H...
package cz.destil.settleup.gui; import java.util.ArrayList; import java.util.List; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import android.content.DialogInterface.OnMultiChoiceClickListener; import ...
package com.jlyr; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import com.jlyr.util.LyricReader; import com.jlyr.util.LyricsWebSearch; import com.jlyr.util.Track; import com.jlyr.util.TrackBrowser; import com.jlyr.util.TrackBrowser...
package com.jlyr; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import android.app.Activity; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.DialogInterface.OnMultiChoiceClickListener; ...
package com.jlyr; import java.util.Arrays; import java.util.List; import com.jlyr.util.LyricsWebSearch; import com.jlyr.util.NowPlaying; import com.jlyr.util.ProvidersCollection; import com.jlyr.util.Track; import cz.destil.settleup.gui.MultiSpinner; import android.app.Activity; import android.content.Intent; impor...
package com.jlyr.providers; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.parser.Parser; import com.jlyr.util.Track; import edu.gvsu.masl.asynchttp.HttpConnection; import android.os.Handler; import android.os.Message; import android.util.Log; public class...
package com.jlyr.providers; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.parser.Parser; import org.jsoup.select.Elements; import com.jlyr.util.Track; import edu.gvsu.masl.asynchttp.HttpConnection; import android.os.Handler; import android.os.Message; import android.util.Log; pu...
package com.jlyr.providers; import java.util.List; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.nodes.Node; import org.jsoup.nodes.TextNode; import org.jsoup.parser.Parser; import com.jlyr.util.Track; import edu.gvsu.masl.asynchttp.HttpConnection; import...
package com.jlyr.providers; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.nodes.Node; import org.jsoup.nodes.TextNode; import org.jsoup.parser.Parser; import com.jlyr.util.Track; import edu.gvsu.masl.asynchttp.HttpConnection; import android.os.Handler; import android.os.Message; ...
package com.jlyr.providers; import com.jlyr.util.Track; import edu.gvsu.masl.asynchttp.HttpConnection; import android.os.Handler; import android.os.Message; import android.util.Log; public class LyrDbProvider extends LyricsProvider { public static final String TAG = "JLyrLyrDBProvider"; public LyrDbProvider(T...
package com.jlyr.providers; import java.util.List; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.nodes.Node; import org.jsoup.nodes.TextNode; import org.jsoup.parser.Parser; import org.jsoup.select.Elements; import com.jlyr.util.Track; import edu.gvsu.masl.asynchttp.HttpConnectio...
package com.jlyr.providers; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.parser.Parser; import com.jlyr.util.Track; import edu.gvsu.masl.asynchttp.HttpConnection; import android.os.Handler; import android.o...
package com.jlyr.providers; import java.util.List; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.nodes.Node; import org.jsoup.nodes.TextNode; import org.jsoup.parser.Parser; import com.jlyr.util.Track; import edu.gvsu.masl.asynchttp.HttpConnection; import android.os.Handler; imp...
package com.jlyr.providers; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import android.os.Handler; import android.os.Message; import android.util.Log; import com.jlyr.util.Lyrics; import com.jlyr.util.Track; public abstract class LyricsProvider { protected Track mTrack = null; prote...
package com.jlyr.providers; import com.jlyr.util.Lyrics; import com.jlyr.util.Track; import android.os.Handler; import android.os.Message; import android.util.Log; public class DummyProvider extends LyricsProvider { public static final String TAG = "JLyrDummyProvider"; public DummyProvider(Track track) { sup...
package com.jlyr; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import com.jlyr.util.NowPlaying; import com.jlyr.util.Track; import android.app.AlertDialog; import android.app.ListActivity; import android.content.DialogInterface; import android.content.Intent; import android.content.re...
package com.jlyr.preference; import java.util.ArrayList; import java.util.List; import com.jlyr.R; import com.jlyr.util.ProvidersCollection; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferenc...
package com.jlyr.preference; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.preference.Preference; import android.preference.PreferenceManager; import android.util.AttributeSet; import android.util.Log; public class ResetDispla...
package com.jlyr.preference; import android.content.Context; import android.content.Intent; import android.preference.Preference; import android.util.AttributeSet; public class ProvidersPreference extends Preference implements Preference.OnPreferenceClickListener { public ProvidersPreference(Context context) { su...
/* * Copyright (C) 2008 The Android Open Source Project * * 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 app...
package com.jlyr.preference; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.preference.Preference; import android.preference.PreferenceManager; import android.util.AttributeSet; import android.util.Log; public class ResetString...
package com.jlyr.receiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; import com.jlyr.util.NowPlaying; import com.jlyr.LyricService; import com.jlyr.util.Track; public abstract class AbstractPlayStatusRec...
/** * This file is part of Simple Last.fm Scrobbler. * * Simple Last.fm Scrobbler 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 3 of the License, or * (at your option) any later ver...
/** * This file is part of Simple Last.fm Scrobbler. * * http://code.google.com/p/a-simple-lastfm-scrobbler/ * * Copyright 2011 Simple Last.fm Scrobbler Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
/** * This file is part of Simple Last.fm Scrobbler. * * Simple Last.fm Scrobbler 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 3 of the License, or * (at your option) any later ver...
/** * This file is part of Simple Last.fm Scrobbler. * * Simple Last.fm Scrobbler 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 3 of the License, or * (at your option) any lat...
/** * This file is part of Simple Last.fm Scrobbler. * * http://code.google.com/p/a-simple-lastfm-scrobbler/ * * Copyright 2011 Simple Last.fm Scrobbler Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
/** * This file is part of Simple Last.fm Scrobbler. * * http://code.google.com/p/a-simple-lastfm-scrobbler/ * * Copyright 2011 Simple Last.fm Scrobbler Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
package com.jlyr.receiver; import com.jlyr.util.Track; import android.content.Context; import android.os.Bundle; import android.util.Log; public class SEMCMusicReceiver extends BuiltInMusicAppReceiver { static final String APP_PACKAGE = "com.sonyericsson.music"; static final String ACTION_SEMC_START_LEGACY = "c...
/** * This file is part of Simple Last.fm Scrobbler. * * http://code.google.com/p/a-simple-lastfm-scrobbler/ * * Copyright 2011 Simple Last.fm Scrobbler Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
/** * This file is part of Simple Last.fm Scrobbler. * * Simple Last.fm Scrobbler 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 3 of the License, or * (at your option) any later ver...
package com.jlyr.receiver; import android.content.Context; import android.os.Bundle; public class MIUIMusicReceiver extends BuiltInMusicAppReceiver { static final String APP_PACKAGE = "com.miui.player"; static final String ACTION_MIUI_STOP = "com.miui.player.playbackcomplete"; public MIUIMusicReceiver() { supe...
/** * This file is part of Simple Last.fm Scrobbler. * * http://code.google.com/p/a-simple-lastfm-scrobbler/ * * Copyright 2011 Simple Last.fm Scrobbler Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
/** * This file is part of Simple Last.fm Scrobbler. * * http://code.google.com/p/a-simple-lastfm-scrobbler/ * * Copyright 2011 Simple Last.fm Scrobbler Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
/** * This file is part of Simple Last.fm Scrobbler. * * http://code.google.com/p/a-simple-lastfm-scrobbler/ * * Copyright 2011 Simple Last.fm Scrobbler Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
/** * This file is part of Simple Last.fm Scrobbler. * * Simple Last.fm Scrobbler 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 3 of the License, or * (at your option) any lat...
package com.jlyr.util; import java.util.LinkedList; import android.os.Handler; import android.os.Message; import android.util.Log; public class NowPlaying { private static Track mTrack = null; private static LinkedList<Item> stack = new LinkedList<Item>(); private static Handler mHandler = null; private st...
package com.jlyr.util; import java.io.File; import android.os.Handler; import android.os.Message; import android.util.Log; public class TrackBrowser implements Runnable { public static final int DID_START = 0; public static final int DID_ERROR = 1; public static final int DID_SUCCEED = 2; public static final in...
package com.jlyr.util; import com.jlyr.providers.LyricsProvider; import android.content.Context; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Handler; import android.os.Message; import android.preference.PreferenceManager; import a...
package com.jlyr.util; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; import android.content.Context; import android.content.SharedPreferences; import android.preferen...
package com.jlyr.util; public class Track { public enum State { START, RESUME, PAUSE, COMPLETE, PLAYLIST_FINISHED, UNKNOWN_NONPLAYING }; /** * We have to use this, as signals sent to Scrobble Droid can be void of any * track information if it's "playing" boolean is set to false */ public static final Tr...
package com.jlyr.util; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException;...
package com.jlyr.util; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.util.Log; public class LyricsWebSearch { Track mTrack; String mSearchEngine; Context mContext; protected String...
package com.jlyr; import java.io.File; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.ConnectivityManager;...
package com.jlyr; import android.os.Bundle; import android.preference.PreferenceActivity; import android.preference.PreferenceManager; public class JLyrSettings extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); add...
package edu.gvsu.masl.asynchttp; import java.io.*; import org.apache.http.*; import org.apache.http.client.*; import org.apache.http.client.methods.*; import org.apache.http.entity.*; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.params.HttpConnectionParams; import android.graphics.*; ...
package edu.gvsu.masl.asynchttp; import java.util.ArrayList; /** * Simple connection manager to throttle connections * * @author Greg Zavitz */ public class ConnectionManager { public static final int MAX_CONNECTIONS = 5; private ArrayList<Runnable> active = new ArrayList<Runnable>(); private ArrayList<Run...
/* * Copyright (C) 2010 Daniel Nilsson * * 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 ...
/* * Copyright (C) 2010 Daniel Nilsson * * 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 ...
/* * Copyright (C) 2010 Daniel Nilsson * * 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 ...
/* * Copyright (C) 2011 Sergey Margaritov * * 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...
/* * Copyright (C) 2010 Daniel Nilsson * * 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 ...
package CtrLayer; import java.util.ArrayList; import DataLayer.Model.Kunde; public interface IFKundeCtr { // get all Kunder public ArrayList<Kunde> getAllKunder(boolean klubMedlem); // get all Kunder having the name public ArrayList<Kunde> getAllKundeViaName(String navn); // get one Kunde having...
package CtrLayer; import java.util.ArrayList; import DataLayer.Model.DelOrdre; import DataLayer.Model.Kunde; import DataLayer.Model.Ordre; public interface IFOrdreCtr { // get all SalesOrders public ArrayList<Ordre> getAllOrdre(); // get all SalesOrders via Kunde name public ArrayList<Ordre> getAl...
package CtrLayer; import java.util.ArrayList; import DataLayer.Model.DelOrdre; import DataLayer.Model.Service; public interface IFPaintingCtr { // Create an empty ServiceOrdre public void startPaintingOrdre(); // Get ServiceOrdre public void setPaintingOrdre(int ordreId); // Get all servicer ...
package CtrLayer; import java.util.ArrayList; import DataLayer.Model.Produkt; public interface IFProduktCtr { // get all products with a specific visibility status public ArrayList<Produkt> getAllProdukt(boolean synlig); // get a product based on type and visibility status public ArrayList<Produkt> ...
package CtrLayer; import java.util.ArrayList; import DataLayer.DB.DBDelOrdre; import DataLayer.DB.DBOrdre; import DataLayer.Model.DelOrdre; import DataLayer.Model.Kunde; import DataLayer.Model.Ordre; import DataLayer.Model.Ordre.OrdreStatus; import Email.Email; /** * OrdreCtr keeps control of the order...