// Path: SensorDataCollector/src/sysnetlab/android/sdc/datacollector/Tag.java
// public class Tag implements Parcelable {
//     private int mId;
//     private String mName;
//     private String mShortDescription;
//     private String mLongDescription;
// 
//     public Tag(String name, int tagId) {
//         this(name, "", "", tagId);
//     }
// 
//     public Tag(String name, String shortDesc, int tagId) {
//         this(name, shortDesc, "", tagId);
//     }
// 
//     public Tag(String name, String shortDesc, String longDesc, int tagId) {
//         mName = name;
//         mShortDescription = shortDesc;
//         mLongDescription = longDesc;
//         this.mId = tagId;
//     }
// 
//     public int getTagId() {
//         return mId;
//     }
// 
//     public void setTagId(int tagId) {
//         this.mId = tagId;
//     }
// 
//     public String getName() {
//         return mName;
//     }
// 
//     public void setName(String mName) {
//         this.mName = mName;
//     }
// 
//     public String getShortDescription() {
//         return mShortDescription;
//     }
// 
//     public void setShortDescription(String mShortDescription) {
//         this.mShortDescription = mShortDescription;
//     }
// 
//     public String getLongDescription() {
//         return mLongDescription;
//     }
// 
//     public String toString() {
//         return mName;
//     }
// 
//     public void setLongDescription(String mLongDescription) {
//         this.mLongDescription = mLongDescription;
//     }
// 
//     @Override
//     public boolean equals(Object rhs) {
//         if (rhs == this) {
//             return true;
//         }
// 
//         if (!(rhs instanceof Tag)) {
//             return false;
//         }
// 
//         Tag tag = (Tag) rhs;
// 
//         if (mId != tag.mId) {
//             return false;
//         }
// 
//         if (!TextUtils.equals(mName, tag.mName)) {
//             return false;
//         }
// 
//         if (!TextUtils.equals(mShortDescription, tag.mShortDescription)) {
//             return false;
//         }
// 
//         if (!TextUtils.equals(mLongDescription, tag.mLongDescription)) {
//             return false;
//         }
// 
//         return true;
//     }
// 
//     public static final Parcelable.Creator<Tag> CREATOR = new Parcelable.Creator<Tag>() {
// 
//         @Override
//         public Tag createFromParcel(Parcel inParcel) {
//             return new Tag(inParcel);
//         }
// 
//         @Override
//         public Tag[] newArray(int size) {
//             return new Tag[size];
//         }
// 
//     };
// 
//     public Tag(Parcel inParcel) {
//         mId = inParcel.readInt();
//         mName = inParcel.readString();
//         mShortDescription = inParcel.readString();
//         mLongDescription = inParcel.readString();
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel outParcel, int flags) {
//         outParcel.writeInt(mId);
//         outParcel.writeString(mName);
//         outParcel.writeString(mShortDescription);
//         outParcel.writeString(mLongDescription);
//     }
// 
//     public Parcelable.Creator<Tag> getCreator() {
//         return CREATOR;
//     }
// }
// 
// Path: SensorDataCollector/src/sysnetlab/android/sdc/datacollector/TaggingState.java
// public enum TaggingState {
//     TAG_ON, /* Tag is ON */
//     TAG_OFF, /* Tag is OFF */
//     TAG_CONTEXT /* ON/OFF depending on context */
// }


import java.util.ArrayList;
import java.util.List;
import sysnetlab.android.sdc.R;
import sysnetlab.android.sdc.datacollector.StateTag;
import sysnetlab.android.sdc.datacollector.Tag;
import sysnetlab.android.sdc.datacollector.TaggingState;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

/*
 * Copyright (c) 2014, the SenSee authors.  Please see the AUTHORS file
 * for details. 
 * 
 * Licensed under the GNU Public License, Version 3.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.gnu.org/copyleft/gpl.html
 * 
 * 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 sysnetlab.android.sdc.ui.adapters;


public class TaggingTagListAdapter extends BaseAdapter {
    private List<StateTag> mListStateTags;
    private Activity mActivity;


// Path: SensorDataCollector/src/sysnetlab/android/sdc/datacollector/Tag.java
// public class Tag implements Parcelable {
//     private int mId;
//     private String mName;
//     private String mShortDescription;
//     private String mLongDescription;
// 
//     public Tag(String name, int tagId) {
//         this(name, "", "", tagId);
//     }
// 
//     public Tag(String name, String shortDesc, int tagId) {
//         this(name, shortDesc, "", tagId);
//     }
// 
//     public Tag(String name, String shortDesc, String longDesc, int tagId) {
//         mName = name;
//         mShortDescription = shortDesc;
//         mLongDescription = longDesc;
//         this.mId = tagId;
//     }
// 
//     public int getTagId() {
//         return mId;
//     }
// 
//     public void setTagId(int tagId) {
//         this.mId = tagId;
//     }
// 
//     public String getName() {
//         return mName;
//     }
// 
//     public void setName(String mName) {
//         this.mName = mName;
//     }
// 
//     public String getShortDescription() {
//         return mShortDescription;
//     }
// 
//     public void setShortDescription(String mShortDescription) {
//         this.mShortDescription = mShortDescription;
//     }
// 
//     public String getLongDescription() {
//         return mLongDescription;
//     }
// 
//     public String toString() {
//         return mName;
//     }
// 
//     public void setLongDescription(String mLongDescription) {
//         this.mLongDescription = mLongDescription;
//     }
// 
//     @Override
//     public boolean equals(Object rhs) {
//         if (rhs == this) {
//             return true;
//         }
// 
//         if (!(rhs instanceof Tag)) {
//             return false;
//         }
// 
//         Tag tag = (Tag) rhs;
// 
//         if (mId != tag.mId) {
//             return false;
//         }
// 
//         if (!TextUtils.equals(mName, tag.mName)) {
//             return false;
//         }
// 
//         if (!TextUtils.equals(mShortDescription, tag.mShortDescription)) {
//             return false;
//         }
// 
//         if (!TextUtils.equals(mLongDescription, tag.mLongDescription)) {
//             return false;
//         }
// 
//         return true;
//     }
// 
//     public static final Parcelable.Creator<Tag> CREATOR = new Parcelable.Creator<Tag>() {
// 
//         @Override
//         public Tag createFromParcel(Parcel inParcel) {
//             return new Tag(inParcel);
//         }
// 
//         @Override
//         public Tag[] newArray(int size) {
//             return new Tag[size];
//         }
// 
//     };
// 
//     public Tag(Parcel inParcel) {
//         mId = inParcel.readInt();
//         mName = inParcel.readString();
//         mShortDescription = inParcel.readString();
//         mLongDescription = inParcel.readString();
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel outParcel, int flags) {
//         outParcel.writeInt(mId);
//         outParcel.writeString(mName);
//         outParcel.writeString(mShortDescription);
//         outParcel.writeString(mLongDescription);
//     }
// 
//     public Parcelable.Creator<Tag> getCreator() {
//         return CREATOR;
//     }
// }
// 
// Path: SensorDataCollector/src/sysnetlab/android/sdc/datacollector/TaggingState.java
// public enum TaggingState {
//     TAG_ON, /* Tag is ON */
//     TAG_OFF, /* Tag is OFF */
//     TAG_CONTEXT /* ON/OFF depending on context */
// }


// Path: SensorDataCollector/src/sysnetlab/android/sdc/ui/adapters/TaggingTagListAdapter.java
import java.util.ArrayList;
import java.util.List;
import sysnetlab.android.sdc.R;
import sysnetlab.android.sdc.datacollector.StateTag;
import sysnetlab.android.sdc.datacollector.Tag;
import sysnetlab.android.sdc.datacollector.TaggingState;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

/*
 * Copyright (c) 2014, the SenSee authors.  Please see the AUTHORS file
 * for details. 
 * 
 * Licensed under the GNU Public License, Version 3.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.gnu.org/copyleft/gpl.html
 * 
 * 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 sysnetlab.android.sdc.ui.adapters;


public class TaggingTagListAdapter extends BaseAdapter {
    private List<StateTag> mListStateTags;
    private Activity mActivity;


    public TaggingTagListAdapter(Activity activity, List<Tag> listTags) {
