// Path: app/src/main/java/jp/yokomark/lgtm/app/history/model/ComposeHistoryCollection.java
// public class ComposeHistoryCollection extends AbstractModel implements LoaderManager.LoaderCallbacks<Cursor> {
//     public static final String TAG = ComposeHistoryCollection.class.getSimpleName();
//     private static final int LOADER_ID = 1;
//     private static final String BUCKET_NAME = StorageUtils.BUCKET_NAME;
//     @Inject Bus mBus;
// 
//     @Inject
//     public ComposeHistoryCollection(@ForActivity Context context) {
//         super(context);
//         ObjectGraphUtils.getObjectGraph(context).inject(this);
//     }
// 
//     @Override
//     public Loader<Cursor> onCreateLoader(int id, Bundle args) {
//         return new CursorLoader(getContext(), MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, MediaStore.Images.Media.BUCKET_DISPLAY_NAME + " = ?", new String[] {BUCKET_NAME}, null);
//     }
// 
//     @Override
//     public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
//         EventBusUtils.postOnMainThread(mBus, new HistoryLoadedEvent(data));
//     }
// 
//     @Override
//     public void onLoaderReset(Loader<Cursor> loader) {
//         EventBusUtils.postOnMainThread(mBus, new HistoryInvalidatedEvent());
//     }
// 
//     public void load() {
//         getLoaderManager().initLoader(LOADER_ID, null, this);
//     }
// 
//     public void onDestroy() {
//         getLoaderManager().destroyLoader(LOADER_ID);
//     }
// }
// 
// Path: app/src/main/java/jp/yokomark/lgtm/app/history/ui/ComposeHistoryActivity.java
// public class ComposeHistoryActivity extends DaggerActivity {
//     public static final String TAG = ComposeHistoryActivity.class.getSimpleName();
//     @Inject ComposeHistoryCollection mCollection;
//     @Inject ComposeHistoryViewHelper mHelper;
//     @Inject Bus mBus;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_list_history);
//         mBus.register(this);
//         mHelper.setUpActionBar();
//         mHelper.setUpListView();
//         mCollection.load();
//     }
// 
//     @Override
//     protected void onDestroy() {
//         mBus.unregister(this);
//         mCollection.onDestroy();
//         super.onDestroy();
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         ComposeHistoryOptionsMenu menu = ComposeHistoryOptionsMenu.valueOf(item);
//         return menu.getHandler().handle(this) || super.onOptionsItemSelected(item);
//     }
// 
//     @Override
//     protected List<Object> getModules() {
//         return Arrays.asList(new ActivityModule(this), new ComposeHistoryModule());
//     }
// 
//     @Subscribe
//     public void onLoadHistory(HistoryLoadedEvent event) {
//         mHelper.swapCursor(event.getCursor());
//     }
// 
//     @Subscribe
//     public void onInvalidateHistory(HistoryInvalidatedEvent event) {
//         mHelper.swapCursor(null);
//     }
// }


import android.content.Context;
import com.anprosit.android.dagger.annotation.ForActivity;
import com.squareup.otto.Bus;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import jp.yokomark.lgtm.app.history.model.ComposeHistoryCollection;
import jp.yokomark.lgtm.app.history.ui.ComposeHistoryActivity;
package jp.yokomark.lgtm.app.history.ui.helper;





/**
 * @author yokomakukeishin
 * @version 1.0.0
 * @since 1.0.0
 */
@Module(
        injects = {
                ComposeHistoryActivity.class,
                ComposeHistoryCollection.class,
                ComposeHistoryViewHelper.class
        },
        complete = false,
        library = true)
public class ComposeHistoryModule {
    @Provides
    @Singleton
    public ComposeHistoryCollection provideComposeHistoryCollection(@ForActivity Context context) {
// Path: app/src/main/java/jp/yokomark/lgtm/app/history/model/ComposeHistoryCollection.java
// public class ComposeHistoryCollection extends AbstractModel implements LoaderManager.LoaderCallbacks<Cursor> {
//     public static final String TAG = ComposeHistoryCollection.class.getSimpleName();
//     private static final int LOADER_ID = 1;
//     private static final String BUCKET_NAME = StorageUtils.BUCKET_NAME;
//     @Inject Bus mBus;
// 
//     @Inject
//     public ComposeHistoryCollection(@ForActivity Context context) {
//         super(context);
//         ObjectGraphUtils.getObjectGraph(context).inject(this);
//     }
// 
//     @Override
//     public Loader<Cursor> onCreateLoader(int id, Bundle args) {
//         return new CursorLoader(getContext(), MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, MediaStore.Images.Media.BUCKET_DISPLAY_NAME + " = ?", new String[] {BUCKET_NAME}, null);
//     }
// 
//     @Override
//     public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
//         EventBusUtils.postOnMainThread(mBus, new HistoryLoadedEvent(data));
//     }
// 
//     @Override
//     public void onLoaderReset(Loader<Cursor> loader) {
//         EventBusUtils.postOnMainThread(mBus, new HistoryInvalidatedEvent());
//     }
// 
//     public void load() {
//         getLoaderManager().initLoader(LOADER_ID, null, this);
//     }
// 
//     public void onDestroy() {
//         getLoaderManager().destroyLoader(LOADER_ID);
//     }
// }
// 
// Path: app/src/main/java/jp/yokomark/lgtm/app/history/ui/ComposeHistoryActivity.java
// public class ComposeHistoryActivity extends DaggerActivity {
//     public static final String TAG = ComposeHistoryActivity.class.getSimpleName();
//     @Inject ComposeHistoryCollection mCollection;
//     @Inject ComposeHistoryViewHelper mHelper;
//     @Inject Bus mBus;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_list_history);
//         mBus.register(this);
//         mHelper.setUpActionBar();
//         mHelper.setUpListView();
//         mCollection.load();
//     }
// 
//     @Override
//     protected void onDestroy() {
//         mBus.unregister(this);
//         mCollection.onDestroy();
//         super.onDestroy();
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         ComposeHistoryOptionsMenu menu = ComposeHistoryOptionsMenu.valueOf(item);
//         return menu.getHandler().handle(this) || super.onOptionsItemSelected(item);
//     }
// 
//     @Override
//     protected List<Object> getModules() {
//         return Arrays.asList(new ActivityModule(this), new ComposeHistoryModule());
//     }
// 
//     @Subscribe
//     public void onLoadHistory(HistoryLoadedEvent event) {
//         mHelper.swapCursor(event.getCursor());
//     }
// 
//     @Subscribe
//     public void onInvalidateHistory(HistoryInvalidatedEvent event) {
//         mHelper.swapCursor(null);
//     }
// }


// Path: app/src/main/java/jp/yokomark/lgtm/app/history/ui/helper/ComposeHistoryModule.java
import android.content.Context;
import com.anprosit.android.dagger.annotation.ForActivity;
import com.squareup.otto.Bus;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import jp.yokomark.lgtm.app.history.model.ComposeHistoryCollection;
import jp.yokomark.lgtm.app.history.ui.ComposeHistoryActivity;

package jp.yokomark.lgtm.app.history.ui.helper;





/**
 * @author yokomakukeishin
 * @version 1.0.0
 * @since 1.0.0
 */
@Module(
        injects = {
                ComposeHistoryActivity.class,
                ComposeHistoryCollection.class,
                ComposeHistoryViewHelper.class
        },
        complete = false,
        library = true)
public class ComposeHistoryModule {
    @Provides
    @Singleton
    public ComposeHistoryCollection provideComposeHistoryCollection(@ForActivity Context context) {
        return new ComposeHistoryCollection(context);