Beispiel #1
0
 public void SetEGOSync()
 {
     EGOSync = true;
     if (Journalid != 0)
     {
         JournalEntry.UpdateSyncFlagBit(Journalid, SyncFlags.EGO, true);
     }
 }
Beispiel #2
0
 public void SetEGOSync(SQLiteConnectionUser cn = null, DbTransaction txn = null)
 {
     EGOSync = true;
     if (Journalid != 0)
     {
         JournalEntry.UpdateSyncFlagBit(Journalid, SyncFlags.EGO, true, cn, txn);
     }
 }
Beispiel #3
0
 public void SetEddnSync()
 {
     EDDNSync = true;
     if (Journalid != 0)
     {
         JournalEntry.UpdateSyncFlagBit(Journalid, SyncFlags.EDDN, true);
     }
 }
Beispiel #4
0
        public void SetStartStop(HistoryEntry hs)
        {
            bool started = false;

            foreach (HistoryEntry he in historylist)
            {
                if (hs == he)
                {
                    if (he.StartMarker)
                    {
                        JournalEntry.UpdateSyncFlagBit(hs.Journalid, SyncFlags.StartMarker, false);
                        he.StartMarker = false;
                    }
                    else if (he.StopMarker)
                    {
                        JournalEntry.UpdateSyncFlagBit(hs.Journalid, SyncFlags.StopMarker, false);
                        he.StopMarker = false;
                    }
                    else if (started == false)
                    {
                        JournalEntry.UpdateSyncFlagBit(hs.Journalid, SyncFlags.StartMarker, true);
                        he.StartMarker = true;
                    }
                    else
                    {
                        JournalEntry.UpdateSyncFlagBit(hs.Journalid, SyncFlags.StopMarker, true);
                        he.StopMarker = true;
                    }

                    break;
                }
                else if (he.StartMarker)
                {
                    started = true;
                }
                else if (he.StopMarker)
                {
                    started = false;
                }
            }
        }
Beispiel #5
0
 public void SetEdsmSync(SQLiteConnectionUser cn = null, DbTransaction txn = null)
 {
     journalEntry.UpdateSyncFlagBit(SyncFlags.EDSM, true, SyncFlags.NoBit, false, cn, txn);
 }