version 0.3.33
[fms.git] / src / optionssetup.cpp
index b1ec99e..ef0700a 100644 (file)
@@ -395,6 +395,38 @@ void SetupDefaultOptions(SQLite3DB::DB *db)
        upd.Step();\r
        upd.Reset();\r
 \r
+       st.Bind(0,"MaxFailureCount");\r
+       st.Bind(1,"1000");\r
+       st.Step();\r
+       st.Reset();\r
+       upd.Bind(0,"Requests");\r
+       upd.Bind(1,order++);\r
+       upd.Bind(2);\r
+       upd.Bind(3,"The maximum number of failed message requests an identity must accumulate before you will completely ignore an identity.  Request failures can happen even under the best circumstances, and may accumulate rapidly, so it is best to keep this at a high level to avoid false positives.");\r
+       upd.Bind(4,"textbox");\r
+       upd.Bind(5);\r
+       upd.Bind(6);\r
+       upd.Bind(7,"advanced");\r
+       upd.Bind(8,"MaxFailureCount");\r
+       upd.Step();\r
+       upd.Reset();\r
+\r
+       st.Bind(0,"FailureCountReduction");\r
+       st.Bind(1,"500");\r
+       st.Step();\r
+       st.Reset();\r
+       upd.Bind(0,"Requests");\r
+       upd.Bind(1,order++);\r
+       upd.Bind(2);\r
+       upd.Bind(3,"Each identity's failure count will be reduced by this amount every day.");\r
+       upd.Bind(4,"textbox");\r
+       upd.Bind(5);\r
+       upd.Bind(6);\r
+       upd.Bind(7,"advanced");\r
+       upd.Bind(8,"FailureCountReduction");\r
+       upd.Step();\r
+       upd.Reset();\r
+\r
        st.Bind(0,"MinLocalMessageTrust");\r
        st.Bind(1,"50");\r
        st.Step();\r
@@ -603,6 +635,106 @@ void SetupDefaultOptions(SQLite3DB::DB *db)
        upd.Step();\r
        upd.Reset();\r
 \r
+#ifdef FROST_SUPPORT\r
+\r
+       st.Bind(0,"DownloadFrostMessages");\r
+       st.Bind(1,"false");\r
+       st.Step();\r
+       st.Reset();\r
+       upd.Bind(0,"Frost Support");\r
+       upd.Bind(1,order++);\r
+       upd.Bind(2,"true|true|false|false");\r
+       upd.Bind(3,"Enable downloading of Frost messages.");\r
+       upd.Bind(4,"select");\r
+       upd.Bind(5);\r
+       upd.Bind(6);\r
+       upd.Bind(7,"simple");\r
+       upd.Bind(8,"DownloadFrostMessages");\r
+       upd.Step();\r
+       upd.Reset();\r
+\r
+       st.Bind(0,"FrostMessageBase");\r
+       st.Bind(1,"frost");\r
+       st.Step();\r
+       st.Reset();\r
+       upd.Bind(0,"Frost Support");\r
+       upd.Bind(1,order++);\r
+       upd.Bind(2);\r
+       upd.Bind(3,"A unique string used by Frost clients who want to communicate with each other.");\r
+       upd.Bind(4,"textbox");\r
+       upd.Bind(5);\r
+       upd.Bind(6);\r
+       upd.Bind(7,"advanced");\r
+       upd.Bind(8,"FrostMessageBase");\r
+       upd.Step();\r
+       upd.Reset();\r
+\r
+       st.Bind(0,"FrostBoardPrefix");\r
+       st.Bind(1,"frost.");\r
+       st.Step();\r
+       st.Reset();\r
+       upd.Bind(0,"Frost Support");\r
+       upd.Bind(1,order++);\r
+       upd.Bind(2);\r
+       upd.Bind(3,"Messages to boards defined in FMS with this prefix will be downloaded from Frost.  You must manually add boards with this prefix to FMS to download Frost messages from those boards.  The prefix is removed to determine the name of the Frost board to download messages from.");\r
+       upd.Bind(4,"textbox");\r
+       upd.Bind(5);\r
+       upd.Bind(6);\r
+       upd.Bind(7,"advanced");\r
+       upd.Bind(8,"FrostBoardPrefix");\r
+       upd.Step();\r
+       upd.Reset();\r
+\r
+       st.Bind(0,"FrostSaveAnonymousMessages");\r
+       st.Bind(1,"true");\r
+       st.Step();\r
+       st.Reset();\r
+       upd.Bind(0,"Frost Support");\r
+       upd.Bind(1,order++);\r
+       upd.Bind(2,"true|true|false|false");\r
+       upd.Bind(3,"Save Frost messages posted by Anonymous authors.");\r
+       upd.Bind(4,"select");\r
+       upd.Bind(5);\r
+       upd.Bind(6);\r
+       upd.Bind(7,"simple");\r
+       upd.Bind(8,"FrostSaveAnonymousMessages");\r
+       upd.Step();\r
+       upd.Reset();\r
+\r
+       st.Bind(0,"FrostMessageMaxDaysBackward");\r
+       st.Bind(1,"5");\r
+       st.Step();\r
+       st.Reset();\r
+       upd.Bind(0,"Frost Support");\r
+       upd.Bind(1,order++);\r
+       upd.Bind(2);\r
+       upd.Bind(3,"The maximum number of days backward that Frost messages will be downloaded.");\r
+       upd.Bind(4,"textbox");\r
+       upd.Bind(5);\r
+       upd.Bind(6);\r
+       upd.Bind(7,"simple");\r
+       upd.Bind(8,"FrostMessageMaxDaysBackward");\r
+       upd.Step();\r
+       upd.Reset();\r
+\r
+       st.Bind(0,"FrostMaxMessageRequests");\r
+       st.Bind(1,"20");\r
+       st.Step();\r
+       st.Reset();\r
+       upd.Bind(0,"Frost Support");\r
+       upd.Bind(1,order++);\r
+       upd.Bind(2);\r
+       upd.Bind(3,"The maximum number of concurrent requests for new Frost messages.");\r
+       upd.Bind(4,"textbox");\r
+       upd.Bind(5);\r
+       upd.Bind(6);\r
+       upd.Bind(7,"simple");\r
+       upd.Bind(8,"FrostMaxMessageRequests");\r
+       upd.Step();\r
+       upd.Reset();\r
+\r
+#endif // FROST_SUPPORT\r
+\r
        db->Execute("COMMIT;");\r
 \r
 }\r