-rw-r--r-- | noncore/net/networksetup/ppp/ppp.pro | 12 | ||||
-rw-r--r-- | noncore/net/networksetup/ppp/ppp.ui | 20 | ||||
-rw-r--r-- | noncore/net/networksetup/ppp/pppimp.cpp | 4 | ||||
-rw-r--r-- | noncore/net/networksetup/ppp/pppimp.h | 17 | ||||
-rw-r--r-- | noncore/net/networksetup/ppp/pppmodule.cpp | 104 | ||||
-rw-r--r-- | noncore/net/networksetup/ppp/pppmodule.h | 41 | ||||
-rw-r--r-- | noncore/settings/networksettings/ppp/ppp.pro | 12 | ||||
-rw-r--r-- | noncore/settings/networksettings/ppp/ppp.ui | 20 | ||||
-rw-r--r-- | noncore/settings/networksettings/ppp/pppimp.cpp | 4 | ||||
-rw-r--r-- | noncore/settings/networksettings/ppp/pppimp.h | 17 | ||||
-rw-r--r-- | noncore/settings/networksettings/ppp/pppmodule.cpp | 104 | ||||
-rw-r--r-- | noncore/settings/networksettings/ppp/pppmodule.h | 41 |
12 files changed, 376 insertions, 20 deletions
diff --git a/noncore/net/networksetup/ppp/ppp.pro b/noncore/net/networksetup/ppp/ppp.pro new file mode 100644 index 0000000..075cc5f --- a/dev/null +++ b/noncore/net/networksetup/ppp/ppp.pro | |||
@@ -0,0 +1,12 @@ | |||
1 | TEMPLATE = lib | ||
2 | CONFIG += qt warn_on release | ||
3 | #CONFIG += qt warn_on debug | ||
4 | DESTDIR = $(OPIEDIR)/plugins/networksetup | ||
5 | HEADERS = pppimp.h pppmodule.h | ||
6 | SOURCES = pppimp.cpp pppmodule.cpp | ||
7 | INCLUDEPATH+= $(OPIEDIR)/include ../ ../interfaces/ | ||
8 | DEPENDPATH+= $(OPIEDIR)/include | ||
9 | LIBS += -lqpe -L../interfaces/ -linterfaces | ||
10 | INTERFACES= ppp.ui | ||
11 | TARGET = pppplugin | ||
12 | VERSION = 1.0.0 | ||
diff --git a/noncore/net/networksetup/ppp/ppp.ui b/noncore/net/networksetup/ppp/ppp.ui index d08eda0..67d6735 100644 --- a/noncore/net/networksetup/ppp/ppp.ui +++ b/noncore/net/networksetup/ppp/ppp.ui | |||
@@ -1,62 +1,62 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>DialupBase</class> | 2 | <class>PPP</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QDialog</class> | 4 | <class>QDialog</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>Form1</cstring> | 7 | <cstring>PPP</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>273</width> | 14 | <width>277</width> |
15 | <height>340</height> | 15 | <height>340</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Dial-up </string> | 20 | <string>Dial-up </string> |
21 | </property> | 21 | </property> |
22 | <property> | 22 | <property> |
23 | <name>layoutMargin</name> | 23 | <name>layoutMargin</name> |
24 | </property> | 24 | </property> |
25 | <property> | 25 | <property> |
26 | <name>layoutSpacing</name> | 26 | <name>layoutSpacing</name> |
27 | </property> | 27 | </property> |
28 | <vbox> | 28 | <vbox> |
29 | <property stdset="1"> | 29 | <property stdset="1"> |
30 | <name>margin</name> | 30 | <name>margin</name> |
31 | <number>1</number> | 31 | <number>1</number> |
32 | </property> | 32 | </property> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>spacing</name> | 34 | <name>spacing</name> |
35 | <number>0</number> | 35 | <number>0</number> |
36 | </property> | 36 | </property> |
37 | <widget> | 37 | <widget> |
38 | <class>QTabWidget</class> | 38 | <class>QTabWidget</class> |
39 | <property stdset="1"> | 39 | <property stdset="1"> |
40 | <name>name</name> | 40 | <name>name</name> |
41 | <cstring>TabWidget2</cstring> | 41 | <cstring>TabWidget2</cstring> |
42 | </property> | 42 | </property> |
43 | <property> | 43 | <property> |
44 | <name>layoutMargin</name> | 44 | <name>layoutMargin</name> |
45 | </property> | 45 | </property> |
46 | <property> | 46 | <property> |
47 | <name>layoutSpacing</name> | 47 | <name>layoutSpacing</name> |
48 | </property> | 48 | </property> |
49 | <widget> | 49 | <widget> |
50 | <class>QWidget</class> | 50 | <class>QWidget</class> |
51 | <property stdset="1"> | 51 | <property stdset="1"> |
52 | <name>name</name> | 52 | <name>name</name> |
53 | <cstring>tab</cstring> | 53 | <cstring>tab</cstring> |
54 | </property> | 54 | </property> |
55 | <attribute> | 55 | <attribute> |
56 | <name>title</name> | 56 | <name>title</name> |
57 | <string>Account</string> | 57 | <string>Account</string> |
58 | </attribute> | 58 | </attribute> |
59 | <grid> | 59 | <grid> |
60 | <property stdset="1"> | 60 | <property stdset="1"> |
61 | <name>margin</name> | 61 | <name>margin</name> |
62 | <number>6</number> | 62 | <number>6</number> |
@@ -301,97 +301,97 @@ | |||
301 | <class>QSlider</class> | 301 | <class>QSlider</class> |
302 | <property stdset="1"> | 302 | <property stdset="1"> |
303 | <name>name</name> | 303 | <name>name</name> |
304 | <cstring>connectdelay</cstring> | 304 | <cstring>connectdelay</cstring> |
305 | </property> | 305 | </property> |
306 | <property stdset="1"> | 306 | <property stdset="1"> |
307 | <name>minValue</name> | 307 | <name>minValue</name> |
308 | <number>1</number> | 308 | <number>1</number> |
309 | </property> | 309 | </property> |
310 | <property stdset="1"> | 310 | <property stdset="1"> |
311 | <name>maxValue</name> | 311 | <name>maxValue</name> |
312 | <number>180</number> | 312 | <number>180</number> |
313 | </property> | 313 | </property> |
314 | <property stdset="1"> | 314 | <property stdset="1"> |
315 | <name>value</name> | 315 | <name>value</name> |
316 | <number>6</number> | 316 | <number>6</number> |
317 | </property> | 317 | </property> |
318 | <property stdset="1"> | 318 | <property stdset="1"> |
319 | <name>orientation</name> | 319 | <name>orientation</name> |
320 | <enum>Horizontal</enum> | 320 | <enum>Horizontal</enum> |
321 | </property> | 321 | </property> |
322 | </widget> | 322 | </widget> |
323 | <widget row="3" column="0" > | 323 | <widget row="3" column="0" > |
324 | <class>QLabel</class> | 324 | <class>QLabel</class> |
325 | <property stdset="1"> | 325 | <property stdset="1"> |
326 | <name>name</name> | 326 | <name>name</name> |
327 | <cstring>TextLabel1_3</cstring> | 327 | <cstring>TextLabel1_3</cstring> |
328 | </property> | 328 | </property> |
329 | <property stdset="1"> | 329 | <property stdset="1"> |
330 | <name>text</name> | 330 | <name>text</name> |
331 | <string>Wait time</string> | 331 | <string>Wait time</string> |
332 | </property> | 332 | </property> |
333 | </widget> | 333 | </widget> |
334 | <widget row="3" column="2" > | 334 | <widget row="3" column="2" > |
335 | <class>QLabel</class> | 335 | <class>QLabel</class> |
336 | <property stdset="1"> | 336 | <property stdset="1"> |
337 | <name>name</name> | 337 | <name>name</name> |
338 | <cstring>connectdelay_text</cstring> | 338 | <cstring>connectdelay_text</cstring> |
339 | </property> | 339 | </property> |
340 | <property stdset="1"> | 340 | <property stdset="1"> |
341 | <name>minimumSize</name> | 341 | <name>minimumSize</name> |
342 | <size> | 342 | <size> |
343 | <width>15</width> | 343 | <width>15</width> |
344 | <height>0</height> | 344 | <height>0</height> |
345 | </size> | 345 | </size> |
346 | </property> | 346 | </property> |
347 | <property stdset="1"> | 347 | <property stdset="1"> |
348 | <name>text</name> | 348 | <name>text</name> |
349 | <string>1</string> | 349 | <string>6</string> |
350 | </property> | 350 | </property> |
351 | <property stdset="1"> | 351 | <property stdset="1"> |
352 | <name>alignment</name> | 352 | <name>alignment</name> |
353 | <set>AlignVCenter|AlignRight</set> | 353 | <set>AlignVCenter|AlignRight</set> |
354 | </property> | 354 | </property> |
355 | <property> | 355 | <property> |
356 | <name>hAlign</name> | 356 | <name>hAlign</name> |
357 | </property> | 357 | </property> |
358 | </widget> | 358 | </widget> |
359 | <widget row="3" column="3" > | 359 | <widget row="3" column="3" > |
360 | <class>QLabel</class> | 360 | <class>QLabel</class> |
361 | <property stdset="1"> | 361 | <property stdset="1"> |
362 | <name>name</name> | 362 | <name>name</name> |
363 | <cstring>TextLabel5</cstring> | 363 | <cstring>TextLabel5</cstring> |
364 | </property> | 364 | </property> |
365 | <property stdset="1"> | 365 | <property stdset="1"> |
366 | <name>text</name> | 366 | <name>text</name> |
367 | <string>sec</string> | 367 | <string>sec</string> |
368 | </property> | 368 | </property> |
369 | </widget> | 369 | </widget> |
370 | <widget row="2" column="0" > | 370 | <widget row="2" column="0" > |
371 | <class>QLabel</class> | 371 | <class>QLabel</class> |
372 | <property stdset="1"> | 372 | <property stdset="1"> |
373 | <name>name</name> | 373 | <name>name</name> |
374 | <cstring>TextLabel3</cstring> | 374 | <cstring>TextLabel3</cstring> |
375 | </property> | 375 | </property> |
376 | <property stdset="1"> | 376 | <property stdset="1"> |
377 | <name>text</name> | 377 | <name>text</name> |
378 | <string>Flow control</string> | 378 | <string>Flow control</string> |
379 | </property> | 379 | </property> |
380 | </widget> | 380 | </widget> |
381 | <widget row="2" column="1" rowspan="1" colspan="3" > | 381 | <widget row="2" column="1" rowspan="1" colspan="3" > |
382 | <class>QCheckBox</class> | 382 | <class>QCheckBox</class> |
383 | <property stdset="1"> | 383 | <property stdset="1"> |
384 | <name>name</name> | 384 | <name>name</name> |
385 | <cstring>crtscts</cstring> | 385 | <cstring>crtscts</cstring> |
386 | </property> | 386 | </property> |
387 | <property stdset="1"> | 387 | <property stdset="1"> |
388 | <name>text</name> | 388 | <name>text</name> |
389 | <string>Hardware flow control</string> | 389 | <string>Hardware flow control</string> |
390 | </property> | 390 | </property> |
391 | <property stdset="1"> | 391 | <property stdset="1"> |
392 | <name>checked</name> | 392 | <name>checked</name> |
393 | <bool>true</bool> | 393 | <bool>true</bool> |
394 | </property> | 394 | </property> |
395 | </widget> | 395 | </widget> |
396 | <spacer row="4" column="1" > | 396 | <spacer row="4" column="1" > |
397 | <property> | 397 | <property> |
@@ -690,81 +690,81 @@ | |||
690 | <property stdset="1"> | 690 | <property stdset="1"> |
691 | <name>text</name> | 691 | <name>text</name> |
692 | <string></string> | 692 | <string></string> |
693 | </property> | 693 | </property> |
694 | </widget> | 694 | </widget> |
695 | <widget row="0" column="0" > | 695 | <widget row="0" column="0" > |
696 | <class>QLabel</class> | 696 | <class>QLabel</class> |
697 | <property stdset="1"> | 697 | <property stdset="1"> |
698 | <name>name</name> | 698 | <name>name</name> |
699 | <cstring>TextLabel1_2_3</cstring> | 699 | <cstring>TextLabel1_2_3</cstring> |
700 | </property> | 700 | </property> |
701 | <property stdset="1"> | 701 | <property stdset="1"> |
702 | <name>text</name> | 702 | <name>text</name> |
703 | <string>First DNS</string> | 703 | <string>First DNS</string> |
704 | </property> | 704 | </property> |
705 | </widget> | 705 | </widget> |
706 | <widget row="1" column="0" > | 706 | <widget row="1" column="0" > |
707 | <class>QLabel</class> | 707 | <class>QLabel</class> |
708 | <property stdset="1"> | 708 | <property stdset="1"> |
709 | <name>name</name> | 709 | <name>name</name> |
710 | <cstring>TextLabel1_2_2_2</cstring> | 710 | <cstring>TextLabel1_2_2_2</cstring> |
711 | </property> | 711 | </property> |
712 | <property stdset="1"> | 712 | <property stdset="1"> |
713 | <name>text</name> | 713 | <name>text</name> |
714 | <string>Second DNS</string> | 714 | <string>Second DNS</string> |
715 | </property> | 715 | </property> |
716 | </widget> | 716 | </widget> |
717 | </grid> | 717 | </grid> |
718 | </widget> | 718 | </widget> |
719 | </grid> | 719 | </grid> |
720 | </widget> | 720 | </widget> |
721 | </widget> | 721 | </widget> |
722 | </vbox> | 722 | </vbox> |
723 | </widget> | 723 | </widget> |
724 | <connections> | 724 | <connections> |
725 | <connection> | 725 | <connection> |
726 | <sender>defaultroute</sender> | 726 | <sender>defaultroute</sender> |
727 | <signal>toggled(bool)</signal> | 727 | <signal>toggled(bool)</signal> |
728 | <receiver>gatewaybox</receiver> | 728 | <receiver>gatewaybox</receiver> |
729 | <slot>setDisabled(bool)</slot> | 729 | <slot>setDisabled(bool)</slot> |
730 | </connection> | 730 | </connection> |
731 | <connection> | 731 | <connection> |
732 | <sender>usepeerdns</sender> | 732 | <sender>usepeerdns</sender> |
733 | <signal>toggled(bool)</signal> | 733 | <signal>toggled(bool)</signal> |
734 | <receiver>dnsbox</receiver> | 734 | <receiver>dnsbox</receiver> |
735 | <slot>setDisabled(bool)</slot> | 735 | <slot>setDisabled(bool)</slot> |
736 | </connection> | 736 | </connection> |
737 | <connection> | 737 | <connection> |
738 | <sender>connectdelay</sender> | ||
739 | <signal>valueChanged(int)</signal> | ||
740 | <receiver>connectdelay_text</receiver> | ||
741 | <slot>setNum(int)</slot> | ||
742 | </connection> | ||
743 | <connection> | ||
744 | <sender>dial_manual</sender> | 738 | <sender>dial_manual</sender> |
745 | <signal>toggled(bool)</signal> | 739 | <signal>toggled(bool)</signal> |
746 | <receiver>idletime</receiver> | 740 | <receiver>idletime</receiver> |
747 | <slot>setDisabled(bool)</slot> | 741 | <slot>setDisabled(bool)</slot> |
748 | </connection> | 742 | </connection> |
743 | <connection> | ||
744 | <sender>connectdelay</sender> | ||
745 | <signal>valueChanged(int)</signal> | ||
746 | <receiver>connectdelay_text</receiver> | ||
747 | <slot>setNum(int)</slot> | ||
748 | </connection> | ||
749 | </connections> | 749 | </connections> |
750 | <tabstops> | 750 | <tabstops> |
751 | <tabstop>TabWidget2</tabstop> | 751 | <tabstop>TabWidget2</tabstop> |
752 | <tabstop>acname</tabstop> | 752 | <tabstop>acname</tabstop> |
753 | <tabstop>username</tabstop> | 753 | <tabstop>username</tabstop> |
754 | <tabstop>password</tabstop> | 754 | <tabstop>password</tabstop> |
755 | <tabstop>phone</tabstop> | 755 | <tabstop>phone</tabstop> |
756 | <tabstop>atdial</tabstop> | 756 | <tabstop>atdial</tabstop> |
757 | <tabstop>speed</tabstop> | 757 | <tabstop>speed</tabstop> |
758 | <tabstop>crtscts</tabstop> | 758 | <tabstop>crtscts</tabstop> |
759 | <tabstop>connectdelay</tabstop> | 759 | <tabstop>connectdelay</tabstop> |
760 | <tabstop>dial_manual</tabstop> | 760 | <tabstop>dial_manual</tabstop> |
761 | <tabstop>dial_idle</tabstop> | 761 | <tabstop>dial_idle</tabstop> |
762 | <tabstop>dial_demand</tabstop> | 762 | <tabstop>dial_demand</tabstop> |
763 | <tabstop>idletime</tabstop> | 763 | <tabstop>idletime</tabstop> |
764 | <tabstop>defaultroute</tabstop> | 764 | <tabstop>defaultroute</tabstop> |
765 | <tabstop>gateway</tabstop> | 765 | <tabstop>gateway</tabstop> |
766 | <tabstop>usepeerdns</tabstop> | 766 | <tabstop>usepeerdns</tabstop> |
767 | <tabstop>dns1</tabstop> | 767 | <tabstop>dns1</tabstop> |
768 | <tabstop>dns2</tabstop> | 768 | <tabstop>dns2</tabstop> |
769 | </tabstops> | 769 | </tabstops> |
770 | </UI> | 770 | </UI> |
diff --git a/noncore/net/networksetup/ppp/pppimp.cpp b/noncore/net/networksetup/ppp/pppimp.cpp new file mode 100644 index 0000000..e3a7481 --- a/dev/null +++ b/noncore/net/networksetup/ppp/pppimp.cpp | |||
@@ -0,0 +1,4 @@ | |||
1 | #include "pppimp.h" | ||
2 | |||
3 | // pppconfigureimp.h | ||
4 | |||
diff --git a/noncore/net/networksetup/ppp/pppimp.h b/noncore/net/networksetup/ppp/pppimp.h new file mode 100644 index 0000000..60d29b5 --- a/dev/null +++ b/noncore/net/networksetup/ppp/pppimp.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #ifndef PPPIMP_H | ||
2 | #define PPPIMP_H | ||
3 | |||
4 | #include "ppp.h" | ||
5 | |||
6 | class PPPConfigureImp : public PPP { | ||
7 | |||
8 | public: | ||
9 | PPPConfigureImp(); | ||
10 | ~PPPConfigureImp(); | ||
11 | |||
12 | }; | ||
13 | |||
14 | #endif | ||
15 | |||
16 | // pppconfigureimp.h | ||
17 | |||
diff --git a/noncore/net/networksetup/ppp/pppmodule.cpp b/noncore/net/networksetup/ppp/pppmodule.cpp new file mode 100644 index 0000000..68bb0a0 --- a/dev/null +++ b/noncore/net/networksetup/ppp/pppmodule.cpp | |||
@@ -0,0 +1,104 @@ | |||
1 | #include "pppmodule.h" | ||
2 | #include "interfaceinformationimp.h" | ||
3 | |||
4 | /** | ||
5 | * Constructor, find all of the possible interfaces | ||
6 | */ | ||
7 | PPPModule::PPPModule() : Module() { | ||
8 | } | ||
9 | |||
10 | /** | ||
11 | * Delete any interfaces that we own. | ||
12 | */ | ||
13 | PPPModule::~PPPModule(){ | ||
14 | Interface *i; | ||
15 | for ( i=list.first(); i != 0; i=list.next() ) | ||
16 | delete i; | ||
17 | } | ||
18 | |||
19 | /** | ||
20 | * Change the current profile | ||
21 | */ | ||
22 | void PPPModule::setProfile(const QString &newProfile){ | ||
23 | profile = newProfile; | ||
24 | } | ||
25 | |||
26 | /** | ||
27 | * get the icon name for this device. | ||
28 | * @param Interface* can be used in determining the icon. | ||
29 | * @return QString the icon name (minus .png, .gif etc) | ||
30 | */ | ||
31 | QString PPPModule::getPixmapName(Interface* ){ | ||
32 | return "ppp"; | ||
33 | } | ||
34 | |||
35 | /** | ||
36 | * Check to see if the interface i is owned by this module. | ||
37 | * @param Interface* interface to check against | ||
38 | * @return bool true if i is owned by this module, false otherwise. | ||
39 | */ | ||
40 | bool PPPModule::isOwner(Interface *i){ | ||
41 | // Scan the ppp database | ||
42 | return false; | ||
43 | |||
44 | i->setHardwareName("PPP"); | ||
45 | list.append(i); | ||
46 | return true; | ||
47 | } | ||
48 | |||
49 | /** | ||
50 | * Create, and return the WLANConfigure Module | ||
51 | * @return QWidget* pointer to this modules configure. | ||
52 | */ | ||
53 | QWidget *PPPModule::configure(Interface *i){ | ||
54 | return NULL; | ||
55 | //PPPConfigureImp *pppconfig = new PPPConfigureImp(0, "PPPConfig", i, false, Qt::WDestructiveClose); | ||
56 | //pppconfig->setProfile(profile); | ||
57 | //return wlanconfig; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * Create, and return the Information Module | ||
62 | * @return QWidget* pointer to this modules info. | ||
63 | */ | ||
64 | QWidget *PPPModule::information(Interface *i){ | ||
65 | return NULL; | ||
66 | |||
67 | //WlanInfoImp *info = new WlanInfoImp(0, i->getInterfaceName(), Qt::WDestructiveClose); | ||
68 | //InterfaceInformationImp *information = new InterfaceInformationImp(info->tabWidget, "InterfaceSetupImp", i); | ||
69 | //info->tabWidget->insertTab(information, "TCP/IP"); | ||
70 | //return info; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * Get all active (up or down) interfaces | ||
75 | * @return QList<Interface> A list of interfaces that exsist that havn't | ||
76 | * been called by isOwner() | ||
77 | */ | ||
78 | QList<Interface> PPPModule::getInterfaces(){ | ||
79 | return list; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * Attempt to add a new interface as defined by name | ||
84 | * @param name the name of the type of interface that should be created given | ||
85 | * by possibleNewInterfaces(); | ||
86 | * @return Interface* NULL if it was unable to be created. | ||
87 | */ | ||
88 | Interface *PPPModule::addNewInterface(const QString &newInterface){ | ||
89 | // We can't add a 802.11 interface, either the hardware will be there | ||
90 | // or it wont. | ||
91 | return NULL; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * Attempts to remove the interface, doesn't delete i | ||
96 | * @return bool true if successfull, false otherwise. | ||
97 | */ | ||
98 | bool PPPModule::remove(Interface*){ | ||
99 | // Can't remove a hardware device, you can stop it though. | ||
100 | return false; | ||
101 | } | ||
102 | |||
103 | // pppmodule.cpp | ||
104 | |||
diff --git a/noncore/net/networksetup/ppp/pppmodule.h b/noncore/net/networksetup/ppp/pppmodule.h new file mode 100644 index 0000000..c8e77e2 --- a/dev/null +++ b/noncore/net/networksetup/ppp/pppmodule.h | |||
@@ -0,0 +1,41 @@ | |||
1 | #ifndef PPP_MODULE_H | ||
2 | #define PPP_MODULE_H | ||
3 | |||
4 | #include "module.h" | ||
5 | |||
6 | class PPPModule : Module { | ||
7 | |||
8 | signals: | ||
9 | void updateInterface(Interface *i); | ||
10 | |||
11 | public: | ||
12 | PPPModule(); | ||
13 | ~PPPModule(); | ||
14 | |||
15 | virtual void setProfile(const QString &newProfile); | ||
16 | virtual bool isOwner(Interface *); | ||
17 | virtual QWidget *configure(Interface *i); | ||
18 | virtual QWidget *information(Interface *i); | ||
19 | virtual QList<Interface> getInterfaces(); | ||
20 | virtual void possibleNewInterfaces(QMap<QString, QString> &){}; | ||
21 | virtual Interface *addNewInterface(const QString &name); | ||
22 | virtual bool remove(Interface* i); | ||
23 | virtual QString getPixmapName(Interface* i); | ||
24 | |||
25 | private: | ||
26 | QList<Interface> list; | ||
27 | QString profile; | ||
28 | |||
29 | }; | ||
30 | |||
31 | extern "C" | ||
32 | { | ||
33 | void* create_plugin() { | ||
34 | return new PPPModule(); | ||
35 | } | ||
36 | }; | ||
37 | |||
38 | #endif | ||
39 | |||
40 | // pppmodule.h | ||
41 | |||
diff --git a/noncore/settings/networksettings/ppp/ppp.pro b/noncore/settings/networksettings/ppp/ppp.pro new file mode 100644 index 0000000..075cc5f --- a/dev/null +++ b/noncore/settings/networksettings/ppp/ppp.pro | |||
@@ -0,0 +1,12 @@ | |||
1 | TEMPLATE = lib | ||
2 | CONFIG += qt warn_on release | ||
3 | #CONFIG += qt warn_on debug | ||
4 | DESTDIR = $(OPIEDIR)/plugins/networksetup | ||
5 | HEADERS = pppimp.h pppmodule.h | ||
6 | SOURCES = pppimp.cpp pppmodule.cpp | ||
7 | INCLUDEPATH+= $(OPIEDIR)/include ../ ../interfaces/ | ||
8 | DEPENDPATH+= $(OPIEDIR)/include | ||
9 | LIBS += -lqpe -L../interfaces/ -linterfaces | ||
10 | INTERFACES= ppp.ui | ||
11 | TARGET = pppplugin | ||
12 | VERSION = 1.0.0 | ||
diff --git a/noncore/settings/networksettings/ppp/ppp.ui b/noncore/settings/networksettings/ppp/ppp.ui index d08eda0..67d6735 100644 --- a/noncore/settings/networksettings/ppp/ppp.ui +++ b/noncore/settings/networksettings/ppp/ppp.ui | |||
@@ -1,62 +1,62 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>DialupBase</class> | 2 | <class>PPP</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QDialog</class> | 4 | <class>QDialog</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>Form1</cstring> | 7 | <cstring>PPP</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>273</width> | 14 | <width>277</width> |
15 | <height>340</height> | 15 | <height>340</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Dial-up </string> | 20 | <string>Dial-up </string> |
21 | </property> | 21 | </property> |
22 | <property> | 22 | <property> |
23 | <name>layoutMargin</name> | 23 | <name>layoutMargin</name> |
24 | </property> | 24 | </property> |
25 | <property> | 25 | <property> |
26 | <name>layoutSpacing</name> | 26 | <name>layoutSpacing</name> |
27 | </property> | 27 | </property> |
28 | <vbox> | 28 | <vbox> |
29 | <property stdset="1"> | 29 | <property stdset="1"> |
30 | <name>margin</name> | 30 | <name>margin</name> |
31 | <number>1</number> | 31 | <number>1</number> |
32 | </property> | 32 | </property> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>spacing</name> | 34 | <name>spacing</name> |
35 | <number>0</number> | 35 | <number>0</number> |
36 | </property> | 36 | </property> |
37 | <widget> | 37 | <widget> |
38 | <class>QTabWidget</class> | 38 | <class>QTabWidget</class> |
39 | <property stdset="1"> | 39 | <property stdset="1"> |
40 | <name>name</name> | 40 | <name>name</name> |
41 | <cstring>TabWidget2</cstring> | 41 | <cstring>TabWidget2</cstring> |
42 | </property> | 42 | </property> |
43 | <property> | 43 | <property> |
44 | <name>layoutMargin</name> | 44 | <name>layoutMargin</name> |
45 | </property> | 45 | </property> |
46 | <property> | 46 | <property> |
47 | <name>layoutSpacing</name> | 47 | <name>layoutSpacing</name> |
48 | </property> | 48 | </property> |
49 | <widget> | 49 | <widget> |
50 | <class>QWidget</class> | 50 | <class>QWidget</class> |
51 | <property stdset="1"> | 51 | <property stdset="1"> |
52 | <name>name</name> | 52 | <name>name</name> |
53 | <cstring>tab</cstring> | 53 | <cstring>tab</cstring> |
54 | </property> | 54 | </property> |
55 | <attribute> | 55 | <attribute> |
56 | <name>title</name> | 56 | <name>title</name> |
57 | <string>Account</string> | 57 | <string>Account</string> |
58 | </attribute> | 58 | </attribute> |
59 | <grid> | 59 | <grid> |
60 | <property stdset="1"> | 60 | <property stdset="1"> |
61 | <name>margin</name> | 61 | <name>margin</name> |
62 | <number>6</number> | 62 | <number>6</number> |
@@ -301,97 +301,97 @@ | |||
301 | <class>QSlider</class> | 301 | <class>QSlider</class> |
302 | <property stdset="1"> | 302 | <property stdset="1"> |
303 | <name>name</name> | 303 | <name>name</name> |
304 | <cstring>connectdelay</cstring> | 304 | <cstring>connectdelay</cstring> |
305 | </property> | 305 | </property> |
306 | <property stdset="1"> | 306 | <property stdset="1"> |
307 | <name>minValue</name> | 307 | <name>minValue</name> |
308 | <number>1</number> | 308 | <number>1</number> |
309 | </property> | 309 | </property> |
310 | <property stdset="1"> | 310 | <property stdset="1"> |
311 | <name>maxValue</name> | 311 | <name>maxValue</name> |
312 | <number>180</number> | 312 | <number>180</number> |
313 | </property> | 313 | </property> |
314 | <property stdset="1"> | 314 | <property stdset="1"> |
315 | <name>value</name> | 315 | <name>value</name> |
316 | <number>6</number> | 316 | <number>6</number> |
317 | </property> | 317 | </property> |
318 | <property stdset="1"> | 318 | <property stdset="1"> |
319 | <name>orientation</name> | 319 | <name>orientation</name> |
320 | <enum>Horizontal</enum> | 320 | <enum>Horizontal</enum> |
321 | </property> | 321 | </property> |
322 | </widget> | 322 | </widget> |
323 | <widget row="3" column="0" > | 323 | <widget row="3" column="0" > |
324 | <class>QLabel</class> | 324 | <class>QLabel</class> |
325 | <property stdset="1"> | 325 | <property stdset="1"> |
326 | <name>name</name> | 326 | <name>name</name> |
327 | <cstring>TextLabel1_3</cstring> | 327 | <cstring>TextLabel1_3</cstring> |
328 | </property> | 328 | </property> |
329 | <property stdset="1"> | 329 | <property stdset="1"> |
330 | <name>text</name> | 330 | <name>text</name> |
331 | <string>Wait time</string> | 331 | <string>Wait time</string> |
332 | </property> | 332 | </property> |
333 | </widget> | 333 | </widget> |
334 | <widget row="3" column="2" > | 334 | <widget row="3" column="2" > |
335 | <class>QLabel</class> | 335 | <class>QLabel</class> |
336 | <property stdset="1"> | 336 | <property stdset="1"> |
337 | <name>name</name> | 337 | <name>name</name> |
338 | <cstring>connectdelay_text</cstring> | 338 | <cstring>connectdelay_text</cstring> |
339 | </property> | 339 | </property> |
340 | <property stdset="1"> | 340 | <property stdset="1"> |
341 | <name>minimumSize</name> | 341 | <name>minimumSize</name> |
342 | <size> | 342 | <size> |
343 | <width>15</width> | 343 | <width>15</width> |
344 | <height>0</height> | 344 | <height>0</height> |
345 | </size> | 345 | </size> |
346 | </property> | 346 | </property> |
347 | <property stdset="1"> | 347 | <property stdset="1"> |
348 | <name>text</name> | 348 | <name>text</name> |
349 | <string>1</string> | 349 | <string>6</string> |
350 | </property> | 350 | </property> |
351 | <property stdset="1"> | 351 | <property stdset="1"> |
352 | <name>alignment</name> | 352 | <name>alignment</name> |
353 | <set>AlignVCenter|AlignRight</set> | 353 | <set>AlignVCenter|AlignRight</set> |
354 | </property> | 354 | </property> |
355 | <property> | 355 | <property> |
356 | <name>hAlign</name> | 356 | <name>hAlign</name> |
357 | </property> | 357 | </property> |
358 | </widget> | 358 | </widget> |
359 | <widget row="3" column="3" > | 359 | <widget row="3" column="3" > |
360 | <class>QLabel</class> | 360 | <class>QLabel</class> |
361 | <property stdset="1"> | 361 | <property stdset="1"> |
362 | <name>name</name> | 362 | <name>name</name> |
363 | <cstring>TextLabel5</cstring> | 363 | <cstring>TextLabel5</cstring> |
364 | </property> | 364 | </property> |
365 | <property stdset="1"> | 365 | <property stdset="1"> |
366 | <name>text</name> | 366 | <name>text</name> |
367 | <string>sec</string> | 367 | <string>sec</string> |
368 | </property> | 368 | </property> |
369 | </widget> | 369 | </widget> |
370 | <widget row="2" column="0" > | 370 | <widget row="2" column="0" > |
371 | <class>QLabel</class> | 371 | <class>QLabel</class> |
372 | <property stdset="1"> | 372 | <property stdset="1"> |
373 | <name>name</name> | 373 | <name>name</name> |
374 | <cstring>TextLabel3</cstring> | 374 | <cstring>TextLabel3</cstring> |
375 | </property> | 375 | </property> |
376 | <property stdset="1"> | 376 | <property stdset="1"> |
377 | <name>text</name> | 377 | <name>text</name> |
378 | <string>Flow control</string> | 378 | <string>Flow control</string> |
379 | </property> | 379 | </property> |
380 | </widget> | 380 | </widget> |
381 | <widget row="2" column="1" rowspan="1" colspan="3" > | 381 | <widget row="2" column="1" rowspan="1" colspan="3" > |
382 | <class>QCheckBox</class> | 382 | <class>QCheckBox</class> |
383 | <property stdset="1"> | 383 | <property stdset="1"> |
384 | <name>name</name> | 384 | <name>name</name> |
385 | <cstring>crtscts</cstring> | 385 | <cstring>crtscts</cstring> |
386 | </property> | 386 | </property> |
387 | <property stdset="1"> | 387 | <property stdset="1"> |
388 | <name>text</name> | 388 | <name>text</name> |
389 | <string>Hardware flow control</string> | 389 | <string>Hardware flow control</string> |
390 | </property> | 390 | </property> |
391 | <property stdset="1"> | 391 | <property stdset="1"> |
392 | <name>checked</name> | 392 | <name>checked</name> |
393 | <bool>true</bool> | 393 | <bool>true</bool> |
394 | </property> | 394 | </property> |
395 | </widget> | 395 | </widget> |
396 | <spacer row="4" column="1" > | 396 | <spacer row="4" column="1" > |
397 | <property> | 397 | <property> |
@@ -690,81 +690,81 @@ | |||
690 | <property stdset="1"> | 690 | <property stdset="1"> |
691 | <name>text</name> | 691 | <name>text</name> |
692 | <string></string> | 692 | <string></string> |
693 | </property> | 693 | </property> |
694 | </widget> | 694 | </widget> |
695 | <widget row="0" column="0" > | 695 | <widget row="0" column="0" > |
696 | <class>QLabel</class> | 696 | <class>QLabel</class> |
697 | <property stdset="1"> | 697 | <property stdset="1"> |
698 | <name>name</name> | 698 | <name>name</name> |
699 | <cstring>TextLabel1_2_3</cstring> | 699 | <cstring>TextLabel1_2_3</cstring> |
700 | </property> | 700 | </property> |
701 | <property stdset="1"> | 701 | <property stdset="1"> |
702 | <name>text</name> | 702 | <name>text</name> |
703 | <string>First DNS</string> | 703 | <string>First DNS</string> |
704 | </property> | 704 | </property> |
705 | </widget> | 705 | </widget> |
706 | <widget row="1" column="0" > | 706 | <widget row="1" column="0" > |
707 | <class>QLabel</class> | 707 | <class>QLabel</class> |
708 | <property stdset="1"> | 708 | <property stdset="1"> |
709 | <name>name</name> | 709 | <name>name</name> |
710 | <cstring>TextLabel1_2_2_2</cstring> | 710 | <cstring>TextLabel1_2_2_2</cstring> |
711 | </property> | 711 | </property> |
712 | <property stdset="1"> | 712 | <property stdset="1"> |
713 | <name>text</name> | 713 | <name>text</name> |
714 | <string>Second DNS</string> | 714 | <string>Second DNS</string> |
715 | </property> | 715 | </property> |
716 | </widget> | 716 | </widget> |
717 | </grid> | 717 | </grid> |
718 | </widget> | 718 | </widget> |
719 | </grid> | 719 | </grid> |
720 | </widget> | 720 | </widget> |
721 | </widget> | 721 | </widget> |
722 | </vbox> | 722 | </vbox> |
723 | </widget> | 723 | </widget> |
724 | <connections> | 724 | <connections> |
725 | <connection> | 725 | <connection> |
726 | <sender>defaultroute</sender> | 726 | <sender>defaultroute</sender> |
727 | <signal>toggled(bool)</signal> | 727 | <signal>toggled(bool)</signal> |
728 | <receiver>gatewaybox</receiver> | 728 | <receiver>gatewaybox</receiver> |
729 | <slot>setDisabled(bool)</slot> | 729 | <slot>setDisabled(bool)</slot> |
730 | </connection> | 730 | </connection> |
731 | <connection> | 731 | <connection> |
732 | <sender>usepeerdns</sender> | 732 | <sender>usepeerdns</sender> |
733 | <signal>toggled(bool)</signal> | 733 | <signal>toggled(bool)</signal> |
734 | <receiver>dnsbox</receiver> | 734 | <receiver>dnsbox</receiver> |
735 | <slot>setDisabled(bool)</slot> | 735 | <slot>setDisabled(bool)</slot> |
736 | </connection> | 736 | </connection> |
737 | <connection> | 737 | <connection> |
738 | <sender>connectdelay</sender> | ||
739 | <signal>valueChanged(int)</signal> | ||
740 | <receiver>connectdelay_text</receiver> | ||
741 | <slot>setNum(int)</slot> | ||
742 | </connection> | ||
743 | <connection> | ||
744 | <sender>dial_manual</sender> | 738 | <sender>dial_manual</sender> |
745 | <signal>toggled(bool)</signal> | 739 | <signal>toggled(bool)</signal> |
746 | <receiver>idletime</receiver> | 740 | <receiver>idletime</receiver> |
747 | <slot>setDisabled(bool)</slot> | 741 | <slot>setDisabled(bool)</slot> |
748 | </connection> | 742 | </connection> |
743 | <connection> | ||
744 | <sender>connectdelay</sender> | ||
745 | <signal>valueChanged(int)</signal> | ||
746 | <receiver>connectdelay_text</receiver> | ||
747 | <slot>setNum(int)</slot> | ||
748 | </connection> | ||
749 | </connections> | 749 | </connections> |
750 | <tabstops> | 750 | <tabstops> |
751 | <tabstop>TabWidget2</tabstop> | 751 | <tabstop>TabWidget2</tabstop> |
752 | <tabstop>acname</tabstop> | 752 | <tabstop>acname</tabstop> |
753 | <tabstop>username</tabstop> | 753 | <tabstop>username</tabstop> |
754 | <tabstop>password</tabstop> | 754 | <tabstop>password</tabstop> |
755 | <tabstop>phone</tabstop> | 755 | <tabstop>phone</tabstop> |
756 | <tabstop>atdial</tabstop> | 756 | <tabstop>atdial</tabstop> |
757 | <tabstop>speed</tabstop> | 757 | <tabstop>speed</tabstop> |
758 | <tabstop>crtscts</tabstop> | 758 | <tabstop>crtscts</tabstop> |
759 | <tabstop>connectdelay</tabstop> | 759 | <tabstop>connectdelay</tabstop> |
760 | <tabstop>dial_manual</tabstop> | 760 | <tabstop>dial_manual</tabstop> |
761 | <tabstop>dial_idle</tabstop> | 761 | <tabstop>dial_idle</tabstop> |
762 | <tabstop>dial_demand</tabstop> | 762 | <tabstop>dial_demand</tabstop> |
763 | <tabstop>idletime</tabstop> | 763 | <tabstop>idletime</tabstop> |
764 | <tabstop>defaultroute</tabstop> | 764 | <tabstop>defaultroute</tabstop> |
765 | <tabstop>gateway</tabstop> | 765 | <tabstop>gateway</tabstop> |
766 | <tabstop>usepeerdns</tabstop> | 766 | <tabstop>usepeerdns</tabstop> |
767 | <tabstop>dns1</tabstop> | 767 | <tabstop>dns1</tabstop> |
768 | <tabstop>dns2</tabstop> | 768 | <tabstop>dns2</tabstop> |
769 | </tabstops> | 769 | </tabstops> |
770 | </UI> | 770 | </UI> |
diff --git a/noncore/settings/networksettings/ppp/pppimp.cpp b/noncore/settings/networksettings/ppp/pppimp.cpp new file mode 100644 index 0000000..e3a7481 --- a/dev/null +++ b/noncore/settings/networksettings/ppp/pppimp.cpp | |||
@@ -0,0 +1,4 @@ | |||
1 | #include "pppimp.h" | ||
2 | |||
3 | // pppconfigureimp.h | ||
4 | |||
diff --git a/noncore/settings/networksettings/ppp/pppimp.h b/noncore/settings/networksettings/ppp/pppimp.h new file mode 100644 index 0000000..60d29b5 --- a/dev/null +++ b/noncore/settings/networksettings/ppp/pppimp.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #ifndef PPPIMP_H | ||
2 | #define PPPIMP_H | ||
3 | |||
4 | #include "ppp.h" | ||
5 | |||
6 | class PPPConfigureImp : public PPP { | ||
7 | |||
8 | public: | ||
9 | PPPConfigureImp(); | ||
10 | ~PPPConfigureImp(); | ||
11 | |||
12 | }; | ||
13 | |||
14 | #endif | ||
15 | |||
16 | // pppconfigureimp.h | ||
17 | |||
diff --git a/noncore/settings/networksettings/ppp/pppmodule.cpp b/noncore/settings/networksettings/ppp/pppmodule.cpp new file mode 100644 index 0000000..68bb0a0 --- a/dev/null +++ b/noncore/settings/networksettings/ppp/pppmodule.cpp | |||
@@ -0,0 +1,104 @@ | |||
1 | #include "pppmodule.h" | ||
2 | #include "interfaceinformationimp.h" | ||
3 | |||
4 | /** | ||
5 | * Constructor, find all of the possible interfaces | ||
6 | */ | ||
7 | PPPModule::PPPModule() : Module() { | ||
8 | } | ||
9 | |||
10 | /** | ||
11 | * Delete any interfaces that we own. | ||
12 | */ | ||
13 | PPPModule::~PPPModule(){ | ||
14 | Interface *i; | ||
15 | for ( i=list.first(); i != 0; i=list.next() ) | ||
16 | delete i; | ||
17 | } | ||
18 | |||
19 | /** | ||
20 | * Change the current profile | ||
21 | */ | ||
22 | void PPPModule::setProfile(const QString &newProfile){ | ||
23 | profile = newProfile; | ||
24 | } | ||
25 | |||
26 | /** | ||
27 | * get the icon name for this device. | ||
28 | * @param Interface* can be used in determining the icon. | ||
29 | * @return QString the icon name (minus .png, .gif etc) | ||
30 | */ | ||
31 | QString PPPModule::getPixmapName(Interface* ){ | ||
32 | return "ppp"; | ||
33 | } | ||
34 | |||
35 | /** | ||
36 | * Check to see if the interface i is owned by this module. | ||
37 | * @param Interface* interface to check against | ||
38 | * @return bool true if i is owned by this module, false otherwise. | ||
39 | */ | ||
40 | bool PPPModule::isOwner(Interface *i){ | ||
41 | // Scan the ppp database | ||
42 | return false; | ||
43 | |||
44 | i->setHardwareName("PPP"); | ||
45 | list.append(i); | ||
46 | return true; | ||
47 | } | ||
48 | |||
49 | /** | ||
50 | * Create, and return the WLANConfigure Module | ||
51 | * @return QWidget* pointer to this modules configure. | ||
52 | */ | ||
53 | QWidget *PPPModule::configure(Interface *i){ | ||
54 | return NULL; | ||
55 | //PPPConfigureImp *pppconfig = new PPPConfigureImp(0, "PPPConfig", i, false, Qt::WDestructiveClose); | ||
56 | //pppconfig->setProfile(profile); | ||
57 | //return wlanconfig; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * Create, and return the Information Module | ||
62 | * @return QWidget* pointer to this modules info. | ||
63 | */ | ||
64 | QWidget *PPPModule::information(Interface *i){ | ||
65 | return NULL; | ||
66 | |||
67 | //WlanInfoImp *info = new WlanInfoImp(0, i->getInterfaceName(), Qt::WDestructiveClose); | ||
68 | //InterfaceInformationImp *information = new InterfaceInformationImp(info->tabWidget, "InterfaceSetupImp", i); | ||
69 | //info->tabWidget->insertTab(information, "TCP/IP"); | ||
70 | //return info; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * Get all active (up or down) interfaces | ||
75 | * @return QList<Interface> A list of interfaces that exsist that havn't | ||
76 | * been called by isOwner() | ||
77 | */ | ||
78 | QList<Interface> PPPModule::getInterfaces(){ | ||
79 | return list; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * Attempt to add a new interface as defined by name | ||
84 | * @param name the name of the type of interface that should be created given | ||
85 | * by possibleNewInterfaces(); | ||
86 | * @return Interface* NULL if it was unable to be created. | ||
87 | */ | ||
88 | Interface *PPPModule::addNewInterface(const QString &newInterface){ | ||
89 | // We can't add a 802.11 interface, either the hardware will be there | ||
90 | // or it wont. | ||
91 | return NULL; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * Attempts to remove the interface, doesn't delete i | ||
96 | * @return bool true if successfull, false otherwise. | ||
97 | */ | ||
98 | bool PPPModule::remove(Interface*){ | ||
99 | // Can't remove a hardware device, you can stop it though. | ||
100 | return false; | ||
101 | } | ||
102 | |||
103 | // pppmodule.cpp | ||
104 | |||
diff --git a/noncore/settings/networksettings/ppp/pppmodule.h b/noncore/settings/networksettings/ppp/pppmodule.h new file mode 100644 index 0000000..c8e77e2 --- a/dev/null +++ b/noncore/settings/networksettings/ppp/pppmodule.h | |||
@@ -0,0 +1,41 @@ | |||
1 | #ifndef PPP_MODULE_H | ||
2 | #define PPP_MODULE_H | ||
3 | |||
4 | #include "module.h" | ||
5 | |||
6 | class PPPModule : Module { | ||
7 | |||
8 | signals: | ||
9 | void updateInterface(Interface *i); | ||
10 | |||
11 | public: | ||
12 | PPPModule(); | ||
13 | ~PPPModule(); | ||
14 | |||
15 | virtual void setProfile(const QString &newProfile); | ||
16 | virtual bool isOwner(Interface *); | ||
17 | virtual QWidget *configure(Interface *i); | ||
18 | virtual QWidget *information(Interface *i); | ||
19 | virtual QList<Interface> getInterfaces(); | ||
20 | virtual void possibleNewInterfaces(QMap<QString, QString> &){}; | ||
21 | virtual Interface *addNewInterface(const QString &name); | ||
22 | virtual bool remove(Interface* i); | ||
23 | virtual QString getPixmapName(Interface* i); | ||
24 | |||
25 | private: | ||
26 | QList<Interface> list; | ||
27 | QString profile; | ||
28 | |||
29 | }; | ||
30 | |||
31 | extern "C" | ||
32 | { | ||
33 | void* create_plugin() { | ||
34 | return new PPPModule(); | ||
35 | } | ||
36 | }; | ||
37 | |||
38 | #endif | ||
39 | |||
40 | // pppmodule.h | ||
41 | |||