mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-15 14:05:05 -05:00
89 lines
1.7 KiB
Java
89 lines
1.7 KiB
Java
|
/**
|
||
|
*
|
||
|
*/
|
||
|
package com.fsck.k9;
|
||
|
|
||
|
import java.util.UUID;
|
||
|
|
||
|
import android.content.Context;
|
||
|
|
||
|
import com.fsck.k9.mail.Flag;
|
||
|
import com.fsck.k9.mail.Message;
|
||
|
|
||
|
public class SearchAccount implements BaseAccount
|
||
|
{
|
||
|
private Flag[] mRequiredFlags = null;
|
||
|
private Flag[] mForbiddenFlags = null;
|
||
|
private String email = null;
|
||
|
private String description = null;
|
||
|
private String query = "";
|
||
|
private boolean integrate = false;
|
||
|
private String mUuid = UUID.randomUUID().toString();
|
||
|
|
||
|
public SearchAccount(Context context, boolean nintegrate, Flag[] requiredFlags, Flag[] forbiddenFlags)
|
||
|
{
|
||
|
mRequiredFlags = requiredFlags;
|
||
|
mForbiddenFlags = forbiddenFlags;
|
||
|
integrate = nintegrate;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public synchronized String getEmail()
|
||
|
{
|
||
|
return email;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public synchronized void setEmail(String email)
|
||
|
{
|
||
|
this.email = email;
|
||
|
}
|
||
|
|
||
|
public Flag[] getRequiredFlags()
|
||
|
{
|
||
|
return mRequiredFlags;
|
||
|
}
|
||
|
|
||
|
public Flag[] getForbiddenFlags()
|
||
|
{
|
||
|
return mForbiddenFlags;
|
||
|
}
|
||
|
|
||
|
public boolean isIntegrate()
|
||
|
{
|
||
|
return integrate;
|
||
|
}
|
||
|
|
||
|
public String getDescription()
|
||
|
{
|
||
|
return description;
|
||
|
}
|
||
|
|
||
|
public void setDescription(String description)
|
||
|
{
|
||
|
this.description = description;
|
||
|
}
|
||
|
|
||
|
public String getQuery()
|
||
|
{
|
||
|
return query;
|
||
|
}
|
||
|
|
||
|
public void setQuery(String query)
|
||
|
{
|
||
|
this.query = query;
|
||
|
}
|
||
|
public String getUuid()
|
||
|
{
|
||
|
return mUuid;
|
||
|
}
|
||
|
public void setUuid(String nUuid)
|
||
|
{
|
||
|
mUuid = nUuid;
|
||
|
}
|
||
|
|
||
|
public void setIntegrate(boolean integrate)
|
||
|
{
|
||
|
this.integrate = integrate;
|
||
|
}
|
||
|
}
|