source: libi4uccore/winserialportutils.vala @ dfe49c76fe79c726339d9cad8d91dc6242eb2959

Revision dfe49c76fe79c726339d9cad8d91dc6242eb2959, 1.2 KB checked in by Matias De la Puente <mfpuente.ar@…>, 3 years ago (diff)

Another massive code rework

+ Models, presenters and view interfaces were moved from libi4uc to libi4uccore.
+ Models, presenters and view interfaces are now in I4uc.Core namespace.
+ Views were moved from libi4uc to gtkfrontend.
+ Views are now in I4uc.GtkFrontend? namespace.
+ src/main.vala was moved to gtksourceview.
+ All the 'i4uc' prefix in source files were removed.
+ Presenters were renamed to Logic (It's shorter).
+ View interfaces were renamed to just View.
+ Side pages are now just pages.

  • Property mode set to 100644
Line 
1/* winserialportutils.vala
2 *
3 * Copyright (C) 2010  Matias De la Puente
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Author:
19 *      Matias De la Puente <mfpuente.ar@gmail.com>
20 */
21using Gee;
22
23public class I4uc.Core.WinSerialPortUtils : SerialPortUtils
24{
25        public override Gee.List<string> list_serial_ports ()
26        {
27                var serial_ports = new ArrayList<string> ();
28               
29                serial_ports.add ("COM1");
30                serial_ports.add ("COM2");
31                serial_ports.add ("COM3");
32                serial_ports.add ("COM4");
33                serial_ports.add ("COM5");
34                serial_ports.add ("COM6");
35                serial_ports.add ("COM7");
36                serial_ports.add ("COM8");
37                serial_ports.add ("COM9");
38               
39                return serial_ports.read_only_view;
40        }
41}
Note: See TracBrowser for help on using the repository browser.