Home | History | Annotate | Download | only in provider

Lines Matching defs:Mailbox

54  *   (Mailbox and Email)
419 // Foreign key to the Mailbox holding this message [INDEX]
1885 // The display name of this mailbox [INDEX]
1887 // The server's identifier for this mailbox
1889 // The server's identifier for the parent of this mailbox (null = top-level)
1891 // A foreign key to the Account that owns this mailbox
1893 // The type (role) of this mailbox
1899 // The sync lookback period for this mailbox (or null if using the account default)
1901 // The sync frequency for this mailbox (or null if using the account default)
1917 public static final class Mailbox extends EmailContent implements SyncColumns, MailboxColumns {
1918 public static final String TABLE_NAME = "Mailbox";
1919 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/mailbox");
1965 // Sentinel values for the mSyncInterval field of both Mailbox records
1969 // Ping indicates that the EAS mailbox is synced based on a "ping" from the server
1971 // Push-Hold indicates an EAS push or ping Mailbox shouldn't sync just yet
1979 // The "main" mailbox for the account, almost always referred to as "Inbox"
1986 // Parent-only mailbox; holds no mail
2011 // Magic mailbox ID's
2020 public Mailbox() {
2025 * Restore a Mailbox from the database, given its unique id
2028 * @return the instantiated Mailbox
2030 public static Mailbox restoreMailboxWithId(Context context, long id) {
2031 Uri u = ContentUris.withAppendedId(Mailbox.CONTENT_URI, id);
2032 Cursor c = context.getContentResolver().query(u, Mailbox.CONTENT_PROJECTION,
2037 return EmailContent.getContent(c, Mailbox.class);
2048 public EmailContent.Mailbox restore(Cursor cursor) {
2091 * Convenience method to return the id of a given type of Mailbox for a given Account
2094 * @param type the mailbox type, as defined above
2095 * @return the id of the mailbox, or -1 if not found
2100 Cursor c = context.getContentResolver().query(Mailbox.CONTENT_URI,
2113 * Convenience method that returns the mailbox found using the method above
2115 public static Mailbox restoreMailboxOfType(Context context, long accountId, int type) {
2117 if (mailboxId != Mailbox.NO_MAILBOX) {
2118 return Mailbox.restoreMailboxWithId(context, mailboxId);