// Path: library/src/com/twitt4droid/data/dao/TimelineDAO.java
// public interface TimelineDAO extends GenericDAO<Status, Long> { 
// 
//     /** 
//      * Returns all statuses.
//      * 
//      * @return statuses. 
//      */
//     List<Status> fetchList();
// 
//     /**
//      * Saves all the given statuses.
//      * 
//      * @param statuses statuses.
//      */
//     void save(List<Status> statuses);
// 
//     /** Deletes all statuses. */
//     void deleteAll();
// }
// 
// Path: library/src/com/twitt4droid/data/dao/impl/DAOFactory.java
// public class DAOFactory {
// 
//     private final Context context;
// 
//     /**
//      * Creates a DAOFactory.
//      * 
//      * @param context the application context.
//      */
//     public DAOFactory(Context context) {
//         this.context = context;
//     }
// 
//     /** @return a new HomeTimelineDAO. */
//     public TimelineDAO getHomeTimelineDAO() {
//         TimelineSQLiteDAO dao = new TimelineSQLiteDAO(TimelineSQLiteDAO.Table.HOME);
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new MentionsTimelineDAO. */
//     public TimelineDAO getMentionsTimelineDAO() {
//         TimelineSQLiteDAO dao = new TimelineSQLiteDAO(TimelineSQLiteDAO.Table.MENTION);
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new UserTimelineDAO. */
//     public UserTimelineDAO getUserTimelineDAO() {
//         UserTimelineSQLiteDAO dao = new UserTimelineSQLiteDAO();
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new FixedQueryTimelineDAO. */
//     public TimelineDAO getFixedQueryTimelineDAO() {
//         TimelineSQLiteDAO dao = new TimelineSQLiteDAO(TimelineSQLiteDAO.Table.FIXED_QUERY);
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new QueryableTimelineDAO. */
//     public TimelineDAO getQueryableTimelineDAO() {
//         TimelineSQLiteDAO dao = new TimelineSQLiteDAO(TimelineSQLiteDAO.Table.QUERYABLE);
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new ListTimelineDAO. */
//     public ListTimelineDAO getListTimelineDAO() {
//         ListSQLiteDAO dao = new ListSQLiteDAO();
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new UserDAO. */
//     public UserDAO getUserDAO() {
//         UserSQLiteDAO dao = new UserSQLiteDAO();
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// }


import android.os.Bundle;
import com.twitt4droid.R;
import com.twitt4droid.data.dao.TimelineDAO;
import com.twitt4droid.data.dao.impl.DAOFactory;
import twitter4j.TwitterException;
import java.util.List;
/*
 * Copyright 2014 Daniel Pedraza-Arcega
 *
 * 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 agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.twitt4droid.fragment;





/**
 * Shows the 20 most recent mentions (tweets containing a users's \@screen_name) for the
 * authenticating user.
 * 
 * @author Daniel Pedraza-Arcega
 * @since version 1.0
 */
public class MentionsTimelineFragment extends TimelineFragment {

    /**
     * Creates a MentionsTimelineFragment.
     * 
     * @param enableDarkTheme if the dark theme is enabled.
     * @return a new MentionsTimelineFragment.
     */
    public static MentionsTimelineFragment newInstance(boolean enableDarkTheme) {
        MentionsTimelineFragment fragment = new MentionsTimelineFragment();
        Bundle args = new Bundle();
        args.putBoolean(ENABLE_DARK_THEME_ARG, enableDarkTheme);
// Path: library/src/com/twitt4droid/data/dao/TimelineDAO.java
// public interface TimelineDAO extends GenericDAO<Status, Long> { 
// 
//     /** 
//      * Returns all statuses.
//      * 
//      * @return statuses. 
//      */
//     List<Status> fetchList();
// 
//     /**
//      * Saves all the given statuses.
//      * 
//      * @param statuses statuses.
//      */
//     void save(List<Status> statuses);
// 
//     /** Deletes all statuses. */
//     void deleteAll();
// }
// 
// Path: library/src/com/twitt4droid/data/dao/impl/DAOFactory.java
// public class DAOFactory {
// 
//     private final Context context;
// 
//     /**
//      * Creates a DAOFactory.
//      * 
//      * @param context the application context.
//      */
//     public DAOFactory(Context context) {
//         this.context = context;
//     }
// 
//     /** @return a new HomeTimelineDAO. */
//     public TimelineDAO getHomeTimelineDAO() {
//         TimelineSQLiteDAO dao = new TimelineSQLiteDAO(TimelineSQLiteDAO.Table.HOME);
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new MentionsTimelineDAO. */
//     public TimelineDAO getMentionsTimelineDAO() {
//         TimelineSQLiteDAO dao = new TimelineSQLiteDAO(TimelineSQLiteDAO.Table.MENTION);
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new UserTimelineDAO. */
//     public UserTimelineDAO getUserTimelineDAO() {
//         UserTimelineSQLiteDAO dao = new UserTimelineSQLiteDAO();
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new FixedQueryTimelineDAO. */
//     public TimelineDAO getFixedQueryTimelineDAO() {
//         TimelineSQLiteDAO dao = new TimelineSQLiteDAO(TimelineSQLiteDAO.Table.FIXED_QUERY);
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new QueryableTimelineDAO. */
//     public TimelineDAO getQueryableTimelineDAO() {
//         TimelineSQLiteDAO dao = new TimelineSQLiteDAO(TimelineSQLiteDAO.Table.QUERYABLE);
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new ListTimelineDAO. */
//     public ListTimelineDAO getListTimelineDAO() {
//         ListSQLiteDAO dao = new ListSQLiteDAO();
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// 
//     /** @return a new UserDAO. */
//     public UserDAO getUserDAO() {
//         UserSQLiteDAO dao = new UserSQLiteDAO();
//         dao.setContext(context);
//         dao.setSQLiteOpenHelper(new Twitt4droidDatabaseHelper(context));
//         return dao;
//     }
// }


// Path: library/src/com/twitt4droid/fragment/MentionsTimelineFragment.java
import android.os.Bundle;
import com.twitt4droid.R;
import com.twitt4droid.data.dao.TimelineDAO;
import com.twitt4droid.data.dao.impl.DAOFactory;
import twitter4j.TwitterException;
import java.util.List;

/*
 * Copyright 2014 Daniel Pedraza-Arcega
 *
 * 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 agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.twitt4droid.fragment;





/**
 * Shows the 20 most recent mentions (tweets containing a users's \@screen_name) for the
 * authenticating user.
 * 
 * @author Daniel Pedraza-Arcega
 * @since version 1.0
 */
public class MentionsTimelineFragment extends TimelineFragment {

    /**
     * Creates a MentionsTimelineFragment.
     * 
     * @param enableDarkTheme if the dark theme is enabled.
     * @return a new MentionsTimelineFragment.
     */
    public static MentionsTimelineFragment newInstance(boolean enableDarkTheme) {
        MentionsTimelineFragment fragment = new MentionsTimelineFragment();
        Bundle args = new Bundle();
        args.putBoolean(ENABLE_DARK_THEME_ARG, enableDarkTheme);
        fragment.setArguments(args);